2012-07-08

A stupid Gentoo tip I should have though about before ;)

To break this really annoying pattern on restricted packages :
You are root, you do your "emerge --keep-going --ask --update --newuse --deep --oneshot -t world"
and boom this dreaded restricted package pops in front of you:


Fetch instructions for dev-java/oracle-jdk-bin-1.7.0.5:
 * Please download jdk-7u5-linux-x64.tar.gz from:
 * http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html
 * and move it to /usr/portage/distfiles

I just hate this : I need to go to a browser (as my normal user of course), download it, come back to the CLI, do the move like "mv /home/gbin/downloads/jkd-blahblah /usr/portage/distfiles"

But when you think about it, as everything is sha/md5 in portage, the distfiles directory can be considered a public directory... so just : 

chmod 777 /usr/portage/distfiles 

Then straight at the warning before emerging, click, dl straight to it .. no more moving gymnastic between users.

1 comment:

  1. Thanks for the comment . I just used this on my Gentoo machine.

    ReplyDelete