Tuesday, May 18, 2004

Gentoo Emerge Usage

Good link


I have been using Gentoo for about a year now, and either I've been doing things wrong, or things have changed

What I used to do: (This means don't do it this way)

To update all packages on the system:
Code:
emerge sync
emerge -upv world
emerge -u world


To install a ~x86 package on a x86 system:
Code:
ACCEPT_KEYWORDS=~x86 emerge samba
emerge -i net-fs/samba-2.2.8a


To clean up unwanted packages on your system:
Code:
cd /var/db/pkg
ls
#look through each directory for packages that aren't needed
emerge unmerge [package]


What I do now:

I've done a lot of reading today in these forums, and found out I was doing it all wrong! I think I'm not the only one, so here is what I have learned:

To update all packages on your system:
Code:
emerge sync
emerge -uDpv world
emerge -uDv world

0 Comments:

Post a Comment

<< Home