GeekFactory

int128.hatenablog.com

インストール済みパッケージを時系列で表示する

インストール済みパッケージの情報は /var/db/pkg 以下に格納されています。

find /var/db/pkg/ -name CBUILD | xargs ls -ltr | sed -e 's,/\|  , ,g' | cut -d' ' -f6,7,8,13,14 | column -t

この1行コマンドを実行すると、インストール日時とパッケージ名が表示されます。

Nov  28  11:29  sys-apps       portage-2.1.4.5
Nov  28  11:30  app-admin      eselect-1.0.10
Nov  28  11:30  app-admin      eselect-vi-1.1.5
Nov  28  11:30  app-admin      eselect-ctags-1.5
Nov  28  11:31  dev-util       ctags-5.7
Nov  28  11:32  app-editors    vim-core-7.2
Nov  28  11:37  app-editors    vim-7.2
Nov  28  11:37  app-vim        gentoo-syntax-20070506
Nov  29  07:04  app-portage    ufed-0.40-r10
Nov  29  07:19  app-emulation  emul-linux-x86-baselibs-20080316
Nov  29  07:21  sys-boot       grub-0.97-r6
Nov  29  07:31  sys-devel      bc-1.06.95
Nov  29  07:32  sys-libs       e2fsprogs-libs-1.41.2
Nov  29  07:35  sys-fs         e2fsprogs-1.41.2
Nov  29  07:38  sys-fs         device-mapper-1.02.24-r1
Nov  29  07:42  sys-fs         xfsprogs-2.9.7
Nov  29  07:43  sys-fs         lvm2-2.02.36
Nov  29  07:48  dev-util       pkgconfig-0.23
Nov  29  07:50  dev-libs       libpcre-7.8
Nov  29  07:51  app-admin      metalog-0.8-r1
Nov  29  08:07  app-misc       screen-4.0.3
Nov  29  08:31  net-misc       bridge-utils-1.4
Nov  29  11:27  sys-apps       debianutils-2.28.2
Nov  29  11:27  app-portage    gentoolkit-0.2.4.2
Nov  29  11:54  app-text       texi2html-1.76
Dec  3   23:28  app-i18n       man-pages-ja-20070515
Dec  3   23:29  sys-apps       man-pages-3.13
Dec  3   23:30  sys-apps       man-pages-posix-2003a
Dec  3   23:34  sys-devel      autoconf-2.61-r2
Dec  3   23:35  sys-libs       cracklib-2.8.12
Dec  3   23:43  dev-libs       openssl-0.9.8h-r1
Dec  3   23:43  dev-perl       Locale-gettext-1.05
Dec  3   23:44  sys-apps       help2man-1.36.4
Dec  3   23:45  sys-devel      libtool-1.5.26
Dec  3   23:46  sys-devel      automake-1.10.1-r1
Dec  3   23:47  sys-apps       acl-2.2.47
Dec  3   23:49  net-misc       rsync-3.0.4
Dec  3   23:52  sys-apps       shadow-4.0.18.2
Dec  3   23:56  sys-libs       pam-1.0.1
Dec  3   23:56  sys-auth       pambase-20080318
Dec  4   00:00  net-misc       openssh-5.1_p1-r1
Dec  4   00:04  sys-apps       busybox-1.11.1
Dec  4   00:38  sys-fs         sysfsutils-2.1.0
Dec  4   00:38  x11-misc       read-edid-1.4.1-r1
Dec  7   16:21  media-libs     libart_lgpl-2.3.20
Dec  7   16:22  app-arch       lzma-utils-4.32.7
Dec  7   16:24  media-libs     freetype-2.3.7
Dec  7   16:25  sys-power      cpufrequtils-002-r4
Dec  7   16:26  media-libs     libpng-1.2.33
Dec  7   16:29  net-analyzer   rrdtool-1.2.28-r1
Dec  7   16:30  sys-apps       lm_sensors-2.10.7
Dec  7   16:31  sys-power      cpufreqd-2.1.1
Dec  7   16:46  sys-apps       hdparm-8.9
Dec  7   22:33  app-admin      hddtemp-0.3_beta15-r3
Dec  13  13:42  sys-kernel     gentoo-sources-2.6.26-r4
Dec  13  14:43  mail-mta       ssmtp-2.62-r3
Dec  13  14:44  app-admin      sudo-1.6.9_p17
Dec  15  00:23  app-portage    epm-1.33
Dec  15  00:33  dev-python     pyxml-0.8.4-r1
Dec  15  00:34  app-admin      logrotate-3.7.2
Dec  15  00:35  sys-apps       iproute2-2.6.22.20070710
Dec  15  00:37  app-emulation  xen-tools-3.3.0
Dec  15  00:41  app-emulation  xen-3.3.0
Dec  15  22:30  app-text       opensp-1.5.2-r1
Dec  15  22:35  app-emulation  bochs-2.3
Dec  18  16:05  app-emulation  kqemu-1.3.0_pre11
Dec  18  17:38  sys-devel      gcc-3.4.6-r2
Dec  18  22:58  sys-kernel     xen-sources-2.6.27-r4
Dec  20  14:21  net-misc       ntp-4.2.4_p5