Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 10:35:38 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Yasuhiro Kimura <yasu@utahime.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: List of packages upgraded last time `pkg upgrade` was executed
Message-ID:  <YBEl2jz%2B3om7wEIz@straylight.m.ringlet.net>
In-Reply-To: <20210127.105722.43271801537229412.yasu@utahime.org>
References:  <20210127.101755.2072625504289992511.yasu@utahime.org> <CAOjFWZ5ZUjZeoUbj_Pw1ERdeDsexTAORvvpAG4GMcLSmMGU0%2Bw@mail.gmail.com> <20210127.105722.43271801537229412.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--3XtLO+hllxMfx+Ci
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 27, 2021 at 10:57:22AM +0900, Yasuhiro Kimura wrote:
> From: Freddie Cash <fjwcash@gmail.com>
> Subject: Re: List of packages upgraded last time `pkg upgrade` was execut=
ed
> Date: Tue, 26 Jan 2021 17:26:29 -0800
>=20
> > /var/log/messages and I think /var/log/daemon include the output of the=
 pkg
> > commands. If you have the log files backed up from the last time it was
> > run, you could grep for pkg in those.
> >=20
> > No idea if this info is also stored in the sqlite databases pkg uses.
>=20
> Thank you for reply. But my intention is to write shell script that
> gets the list of upgraded packages and does something by using
> it. Because of that the list need to be gotton without any user
> interaction. So unfortunately your method is not applicable to my
> case.

Well, there is the option of running a pkg query before and after
the upgrade and comparing the results... especially if you write it in
a higher-level language than the shell, it Should Not Be Too Hard(tm) to
figure out which packages have changed their version, what new ones have
appeared, which ones have been removed...

But, yeah, it is certainly easy for me to suggest that somebody else
write something "simple" :)

G'luck,
Peter

--=20
Peter Pentchev  roam@ringlet.net roam@debian.org pp@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

--3XtLO+hllxMfx+Ci
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmARJdUACgkQZR7vsCUn
3xPlSg//VolQc5Fa5nNEu37TTj3FxltJUpC2dvyFakdAJzGkWhNAvdj5dOj3snvT
h/Hf2+iWjIM+70siw5ziJRUB1HpX/zV3OZq8gxpY7ML0WoCXzstdROiP4NjW/kQJ
OLBwcXDIycSYCMEHK0ePYomtG2larh31khvjoK6u+MrYwxZaMd/AIGx6NlFArtlb
8y9Q4z/R6Yy3QUbbb3wz+xk/uryz7aCg2NdWcIJvz8nL5yML/UpOJ5BxSByGS5By
guj9Av7mA+AYsKV4lEnqMpYtbRiT+atQH8z4nUDeL9VCjZ2+e6Mg1Xqm/HlnMRgV
xu5txIfOLdRDlhunlMEBTfHOVef9c+Svbyu18GucAVpKNUndRUYswBBX5PpeLWTR
e00Swe9cCQjCij0xF7faL9Ys0DeuGix/jQkNfeH1nHDOrkjYZm0ShVCvOIzA7PBF
Ra+qVRo5kqJGqBEzPHDpgGIqYSm6o7CceTcGiHea68no/NwclhvQ7AmEHnYJNg3x
k4KGRlWjFN7+Phb9O8zQPDzmccCN5XzC9GuTBfUb0RKcKReH1dR6a8mMR8sx4ZXY
KSGAoeSJzhJ628ArjTnFKS9yUuHBEh3Mwq2wz5GnzTn7SXrWg7unWW0S48xgfzeC
mMACR2PsOTHfuT89y86GvF4uLiP242liBXI+KyN8Fh/Qw4Uq+bo=
=YNDK
-----END PGP SIGNATURE-----

--3XtLO+hllxMfx+Ci--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YBEl2jz%2B3om7wEIz>