Java install
ls /usr/portage/dev-java/sun-jdk/
emerge -av =dev-java/sun-jdk-1.5.0.13
java-config -L
java-config -S 1
/usr/sbin/env-update && source /etc/profile
Emerge and Equery
Taken from here
emerge brings in new packages. equery looks at the package database.
- update repository:
- emerge –sync
- install package with query
- emrge -av sun-jdk
- start with this software
- emerge links wget htop
- emerge …
- manipulate package database
- emerge -NDtu world
- –update packages and packages that depend on updated packages (–deep) in the world list. Give output in –tree format. Consider packages changed if their USE flags have changed (–newuse, -N) Add –pretend (-p) to just see what it will do first.
- emerge –skipfirst …
- skip first pkg on a rebuild; very useful if something doesn’t work
- equery …
- query package database
- equary belongs
- who owns these files?
- equery list
- list packages on system
-
Maintenance
Taken from here
Do this whenever you want a steaming pile of fresh packages.
# emerge --sync
# emerge --update system
# etc-update if necessary
# emerge --update world
I have seen Meddle to do it this way
emerge –newuse –deep –update world
emerge –ask –verbose coreutils
emerge –resume
Looks like mktemp is now provided by coreutils. No wonder. This block has been bugging me (read: I’ve been ignoring it) for months.
To fix just unmerge mktemp and update coreutils.
Update: Same for the setarch / util-linux block should you come across it. Unmerge setarch.