Posted: . At: 10:13 PM. This was 9 years ago. Post ID: 7879
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Some very useful Gentoo Linux tips for using the emerge command to install software.

The emerge -atv emacs command will tell you what packages will be merged when installing a copy of Emacs on your Gentoo GNU/Linux system.

ec2-user@ip-172-31-30-35 ~ $ sudo emerge -atv emacs
 
 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
 
 
These are the packages that would be merged, in reverse order:
 
Calculating dependencies... done!
[nomerge       ] app-editors/emacs-24.3-r6:24  USE="gtk3 xpm -X -Xaw3d -alsa (-aqua) -athena -dbus -games -gconf -gif -gnutls -gpm -gsettings -gtk -gzip-el -
hesiod -imagemagick -jpeg -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -png (-selinux) -sound -source -svg -tiff -toolkit-scroll-bars -wide-int -x
ft"
[nomerge       ]  app-emacs/emacs-common-gentoo-1.4-r1  USE="-X -games"
[ebuild  N     ]   virtual/emacs-24  0 kB
[ebuild  N     ]    app-editors/emacs-24.3-r6:24  USE="gtk3 xpm -X -Xaw3d -alsa (-aqua) -athena -dbus -games -gconf -gif -gnutls -gpm -gsettings -gtk -gzip-e
l -hesiod -imagemagick -jpeg -kerberos -libxml2 -livecd -m17n-lib -motif -pax_kernel -png (-selinux) -sound -source -svg -tiff -toolkit-scroll-bars -wide-int
 -xft" 34,739 kB
[ebuild  N     ]     app-emacs/emacs-common-gentoo-1.4-r1  USE="-X -games" 40 kB
[ebuild  N     ]     net-libs/liblockfile-1.09  32 kB
[ebuild  N     ]     app-admin/eselect-emacs-1.16  9 kB
[ebuild     U  ]      app-admin/eselect-ctags-1.16 [1.15] 0 kB
 
Total: 6 packages (1 upgrade, 5 new), Size of downloads: 34,818 kB
 
!!! The following installed packages are masked:
- dev-lang/perl-5.16.3::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas K. Huettel <[email protected]> (9 Oct 2014)
# Masked for removal in 30 days; see e.g. bug 446376
# Please upgrade to stable Perl 5.18
 
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
 
 
Would you like to merge these packages? [Yes/No] No
 
Quitting.

Use this command to list all of the Gentoo mirrors you are using.

ec2-user@ip-172-31-30-35 ~ $ portageq gentoo_mirrors
http://distfiles.gentoo.org

The sudo emerge --sync command updates the repositories. This is akin to using sudo apt-get update on Ubuntu or Debian.

Use the sudo emerge --clean command to examine your Gentoo system and remove older packages, but keeping the most recently installed software.

The sudo emerge --list-sets command will list all available package sets.

ec2-user@ip-172-31-30-35 ~ $ sudo emerge --list-sets
downgrade
installed
live-rebuild
module-rebuild
preserved-rebuild
rebuilt-binaries
security
selected
system
unavailable
unavailable-binaries
world
x11-module-rebuild

Type sudo emerge-webrsync to download the entire Portage tree as a tarball. This could be a faster option for a first time Portage sync.

Find more information about the emerge command by typing man emerge or visiting this web page: http://wiki.gentoo.org/wiki/Portage.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.