Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Sep 2011 12:02:59 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Richard Collyer <richard@blueapex.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Date Ports Installed or Install Log
Message-ID:  <4E635AE3.6050505@infracaninophile.co.uk>
In-Reply-To: <4E634D5D.5010209@blueapex.co.uk>
References:  <4E634D5D.5010209@blueapex.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC65006AB510CAFDEAB8A8641
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/09/2011 11:05, Richard Collyer wrote:
> I was trying to get CUPS working last night and installed
> gutenprint-cups but the make failed half way through - managed to get
> the printer working without it so no longer need it. As a result its
> installed a fair number of packaged (mostly X11 related) that I don't
> need on this headless server so I'd like to tidy them up.
>=20
> Is there a way of finding out what date/order ports have been installed=

> or is the output that is sent over ssh logged anywhere so I can trace
> back and find out what packages I need to nerf.

Look at the file modification times in the directories under /var/db/pkg
-- that will tell you the last time the port was updated or installed.

Note: you can't rely on the modification time of the port directory
itself.  Tools like portmaster(1) will create additional files within
the directory, which affects that timestamp.  An example -- choosing one
of my installed ports pretty much arbitrarily:

lucid-nonsense:/var/db/pkg:% ls -la postgresql-client-9.0.4_1/
total 107
-rw-r--r--    1 root  wheel      29 Jun 11 23:22 +COMMENT
-rw-r--r--    1 root  wheel  112912 Jul  9 10:23 +CONTENTS
-rw-r--r--    1 root  wheel    1282 Jun 11 23:22 +DESC
-rw-r--r--    1 root  wheel     831 Jun 11 23:22 +DISPLAY
-rw-r--r--    1 root  wheel   17550 Jun 11 23:22 +MTREE_DIRS
-rw-r--r--    1 root  wheel     771 Sep  3 09:19 +REQUIRED_BY
drwxr-xr-x    2 root  wheel       8 Sep  3 09:19 ./
drwxr-xr-x  377 root  wheel     377 Sep  3 09:22 ../

You can see that there are 3 different dates here:

   Sept 3rd at 09:19 -- this is the last time I ran portmaster to
      update my ports.  Note that its the +REQUIRED_BY file that
      has been updated.  One of the ports that requires
      postgresql-client was updated then.

   Jul 11 at 23:22 -- most of the files were modified at this
      time, and it is in fact when I last updated postgresql-client
      on that machine.

   Jul 9 at 10:23 -- +CONTENTS is a few days older than the other
      files.  This is because I installed postgresql-client from a
      package I'd built in a separate jail a slightly earlier.  This
      is the date the package was built.

Therefore, in order to see the packages installed during your abortive
attempt to deal with gutenprint-cups, try:

    # cd /usr/ports/packages
    # ls -lrt */+COMMENT

That will list all your installed ports in order of the last time they
were updated, most recent ones last.  You should be able to identify the
appropriate date range and work from there.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enigC65006AB510CAFDEAB8A8641
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5jWusACgkQ8Mjk52CukIwIrQCePL05e8KVkoOP3gMQSJWMyCy5
B+gAnRmLZhcHbUmg2RX9uf2ZL3ZJb00u
=P9/D
-----END PGP SIGNATURE-----

--------------enigC65006AB510CAFDEAB8A8641--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E635AE3.6050505>