Pages

Unixbhaskar's Blog

Wednesday, January 9, 2013

How to enlist installed packages on Gentoo

Okay,I haven't write anything about sometime.So start this year with very rudimentary little info.

Say, I would like to see how many packages are installed in system running Gentoo? So ,how do i do that?

Actually couple of ways to do that.First and foremost thing to do, installed a package called gentoolkit .Once this is installed all the hard is done!

Lets explore it.

bhaskar@GentooLinux_17:52:33_Wed Jan 09:~> sudo genlop -t gentoolkit
Password:
* app-portage/gentoolkit

Wed Aug 17 11:48:34 2011 >>> app-portage/gentoolkit-0.3.0.4
merge time: 10 seconds.

Fri Oct 14 10:34:59 2011 >>> app-portage/gentoolkit-0.3.0.4-r4
merge time: 9 seconds.

Wed Dec 21 10:15:12 2011 >>> app-portage/gentoolkit-0.3.0.4-r5
merge time: 11 seconds.

Fri Jun 15 12:42:17 2012 >>> app-portage/gentoolkit-0.3.0.5
merge time: 23 seconds.

Fri Jul 13 11:15:24 2012 >>> app-portage/gentoolkit-0.3.0.6-r3
merge time: 27 seconds.

Wed Dec 19 12:21:43 2012 >>> app-portage/gentoolkit-0.3.0.7
merge time: 14 seconds.

So, I have installed it.Now this package come with lot of utility tools.One of them is called "equery" and I am gonna use it to show ,how it can be useful in this regards.

bhaskar@GentooLinux_17:52:49_Wed Jan 09:~> sudo equery list "*"
* Searching for * ...
[IP-] [ ] app-accessibility/at-spi2-core-2.6.2-r1:2
[IP-] [ ] app-accessibility/caribou-0.4.5:0
[IP-] [ ] app-admin/apache-tools-2.2.23:0
[IP-] [ ] app-admin/apachetop-0.12.6-r1:0
[IP-] [ ] app-admin/apg-2.3.0b-r5:0
[IP-] [ ] app-admin/drush-5.1:0
[IP-] [ ] app-admin/eselect-1.3.1:0
[IP-] [ ] app-admin/eselect-ctags-1.13:0
[IP-] [ ] app-admin/eselect-esd-20060719:0
[IP-] [ ] app-admin/eselect-fontconfig-1.1:0
[IP-] [ ~] app-admin/eselect-gnome-shell-extensions-20111211:0
[IP-] [ ] app-admin/eselect-mesa-0.0.10:0
[IP-] [ ] app-admin/eselect-opencl-1.1.0-r1:0
[IP-] [ ] app-admin/eselect-opengl-1.2.6.1:0
[IP-] [ ] app-admin/eselect-php-0.6.2:0
[IP-] [ ] app-admin/eselect-pinentry-0.3:0
[IP-] [ ] app-admin/eselect-python-20100321:0
[IP-] [ ] app-admin/eselect-qtgraphicssystem-1.1.1:0
[IP-] [ ] app-admin/eselect-ruby-20100603:0
[IP-] [ ] app-admin/eselect-vi-1.1.7-r1:0
[IP-] [ ] app-admin/eselect-xvmc-0.3:0
[IP-] [ ] app-admin/gam-server-0.1.10-r1:0
[IP-] [ ] app-admin/gamin-0.1.10:0
[IP-] [ ] app-admin/gnome-system-log-3.4.1:0
[IP-] [ ] app-admin/logrotate-3.8.3:0
[IP-] [ ] app-admin/openrc-settingsd-1.0.1:0
[IP-] [ ] app-admin/perl-cleaner-2.7:0
[IP-] [ ] app-admin/pessulus-2.30.4:0
[IP-] [ ] app-admin/puppet-2.7.18:0
[IP-] [ ] app-admin/python-updater-0.10:0
[IP-] [ ] app-admin/sabayon-2.30.1:0
[IP-] [ ] app-admin/sudo-1.8.5_p2:0
[IP-] [ ] app-admin/syslog-ng-3.2.5:0
[IP-] [ ] app-admin/sysstat-10.0.5:0
[IP-] [ ] app-admin/system-config-printer-common-1.3.11-r1:0
[IP-] [ ] app-admin/system-config-printer-gnome-1.3.11:0
[IP-] [ ] app-admin/tripwire-2.4.2.2-r1:0
[IP-] [ ] app-admin/webapp-config-1.50.16-r4:0
[IP-] [ ] app-arch/bzip2-1.0.6-r3:0
[IP-] [ ] app-arch/cabextract-1.4:0
[IP-] [ ] app-arch/cpio-2.11:0
[IP-] [ ] app-arch/file-roller-3.4.2:0
[IP-] [ ] app-arch/gzip-1.5:0
[IP-] [ ] app-arch/libarchive-3.0.4-r1:0
[IP-] [ ] app-arch/pax-3.4.12.16:0
[IP-] [ ] app-arch/rpm2targz-9.0.0.5g:0
[IP-] [ ] app-arch/tar-1.26:0
[IP-] [ ] app-arch/unzip-6.0-r3:0
[IP-] [ ] app-arch/xz-utils-5.0.4:0
[IP-] [ ] app-arch/zip-3.0-r1:0
[IP-] [ ] app-cdr/brasero-3.4.1:0
[IP-] [ ] app-cdr/cdrdao-1.2.3-r1:0
[IP-] [ ] app-cdr/cdrtools-3.00:0
[IP-] [ ] app-cdr/dvd+rw-tools-7.1-r1:0
[IP-] [ ] app-crypt/gcr-3.6.2:0/1
[IP-] [ ] app-crypt/gnupg-2.0.19:0
[IP-] [ ] app-crypt/gpgme-1.3.2:1
[IP-] [ ] app-crypt/mhash-0.9.9.9-r1:0
[IP-] [ ] app-crypt/p11-kit-0.14:0
[IP-] [ ] app-crypt/pinentry-0.8.2:0
[IP-] [ ] app-crypt/seahorse-3.4.1:0
[IP-] [ ] app-dicts/aspell-en-6.0.0:0
[IP-] [ ] app-dicts/gnome-dictionary-3.4.0:0
[IP-] [ ] app-dicts/myspell-en-20081002:0
[IP-] [ ] app-editors/gedit-3.4.2:0
[IP-] [ ] app-editors/nano-2.2.5:0
[IP-] [ ] app-editors/vim-7.3.409:0
[IP-] [ ] app-editors/vim-core-7.3.409:0
[IP-] [ ] app-emulation/libvirt-0.10.2-r3:0
[IP-] [ ] app-emulation/qemu-1.1.2-r2:0
[IP-] [ ] app-emulation/spice-protocol-0.12.2:0
[IP-] [ ] app-emulation/virt-manager-0.9.4:0
[IP-] [ ] app-emulation/virtinst-0.600.3:0
[IP-] [ ] app-emulation/wine-1.4.1:0
[IP-] [ ] app-forensics/chkrootkit-0.49:0
[IP-] [ ] app-forensics/rkhunter-1.4.0:0
[IP-] [ ] app-i18n/enca-1.13-r2:0
[IP-] [ ] app-laptop/radeontool-1.6.3:0
[IP-] [ ] app-misc/ca-certificates-20111025:0
[IP-] [ ] app-misc/editor-wrapper-4:0
[IP-] [ ] app-misc/geoclue-0.12.99:0
[IP-] [ ] app-misc/mime-types-8:0
[IP-] [ ] app-misc/pax-utils-0.4:0
[IP-] [ ] app-misc/screen-4.0.3-r6:0
[IP-] [ ] app-misc/scrub-2.5.1:0
.........

I have snipped the output for ease of viewing.As you can see it nicely enlisting all the package installed in the system.Now a little bit of explanation about the leftmost two square brackets.The first one saying "IP" ,that means it is installed from the portage tree and the next bracket is for slots.

Now you can achieve the same thing other ways to ..like below:

bhaskar@GentooLinux_18:12:20_Wed Jan 09:~> cd /var/db/pkg && ls -d */*
app-accessibility/at-spi2-core-2.6.2-r1 media-libs/libsndfile-1.0.25
app-accessibility/caribou-0.4.5 media-libs/libtheora-1.1.1
app-admin/apache-tools-2.2.23 media-libs/libv4l-0.8.9
app-admin/apachetop-0.12.6-r1 media-libs/libvorbis-1.3.3
app-admin/apg-2.3.0b-r5 media-libs/libvpx-1.0.0
app-admin/drush-5.1 media-libs/libwebp-0.2.1
app-admin/eselect-1.3.1 media-libs/memphis-0.2.3
app-admin/eselect-ctags-1.13 media-libs/mesa-9.0
app-admin/eselect-esd-20060719 media-libs/musicbrainz-3.0.3
app-admin/eselect-fontconfig-1.1 media-libs/musicbrainz-4.0.3
app-admin/eselect-gnome-shell-extensions-20111211 media-libs/openjpeg-1.5.0
app-admin/eselect-mesa-0.0.10 media-libs/raptor-2.0.8
app-admin/eselect-opencl-1.1.0-r1 media-libs/sampleicc-1.6.6
app-admin/eselect-opengl-1.2.6.1 media-libs/sdl-mixer-1.2.11-r1
app-admin/eselect-php-0.6.2 media-libs/speex-1.2_rc1
app-admin/eselect-pinentry-0.3 media-libs/swfdec-0.8.4
app-admin/eselect-python-20100321 media-libs/t1lib-5.1.2
app-admin/eselect-qtgraphicssystem-1.1.1 media-libs/taglib-1.7.2
app-admin/eselect-ruby-20100603 media-libs/tiff-4.0.2-r1
app-admin/eselect-vi-1.1.7-r1 media-libs/vigra-1.7.1-r1
app-admin/eselect-xvmc-0.3 media-libs/vo-aacenc-0.1.2
app-admin/gamin-0.1.10 media-libs/webrtc-audio-processing-0.1
app-admin/gam-server-0.1.10-r1 media-libs/x264-0.0.20111220
app-admin/gnome-system-log-3.4.1 media-libs/xvid-1.3.2

Those of you are curious about all the stuff,please go through this gentoolkit-doc

Hope this will help.

Cheers!
Bhaskar