I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of prerequisite packages that I didn't make a note of. I looked at "man pkg-info", but didn't
see an easy to list packages by install date so I could just remove the
lot of them. Is there a way to do that? It's certainly not critical, but I'd just as soon not have a lot of stuff I don't need installed.
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of
prerequisite packages that I didn't make a note of. I looked at "man pkg-info", but didn't see an easy to list packages by install date so I
could just remove the lot of them. Is there a way to do that? It's certainly not critical, but I'd just as soon not have a lot of stuff I
don't need installed.
On Mon, 20 Apr 2020 06:16:31 +0000, Ted Nolan <tednolan> wrote:
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of
prerequisite packages that I didn't make a note of. I looked at "man
pkg-info", but didn't see an easy to list packages by install date so I
could just remove the lot of them. Is there a way to do that? It's
certainly not critical, but I'd just as soon not have a lot of stuff I
don't need installed.
As previously noted, pkg autoremove ought to help. Use the -n flag to
start with, just to see what it will do.
pkg query '%n %t'
will give you a name and a timestamp (but the timestamp is just an
integer, so might need a bit of postprocessing).
The following is too late for this time, but might help in the future:
What I do, before installing anything, is add this to syslog.conf.d - I
call it pkg.conf - (and reload syslogd of course):
!pkg,pkg-static *.*
/var/log/pkg.log
and optionally this to newsyslog.conf.d (I call it 'pkg'):
/var/log/pkg.log 664 20 100 * JNC
Hope this helps.
I had a case today when I thought a particualar package was going
to help me out. In the end it didn't, and it installed dozens of prerequisite packages that I didn't make a note of. I looked at
"man pkg-info", but didn't see an easy to list packages by
install date so I could just remove the lot of them. Is there a
way to do that? It's certainly not critical, but I'd just as
soon not have a lot of stuff I don't need installed.
* Ted Nolan <tednolan> <ted@loft.tnolan.com>:
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of prerequisite >> packages that I didn't make a note of. I looked at "man pkg-info", but didn't
see an easy to list packages by install date so I could just remove the
lot of them. Is there a way to do that? It's certainly not critical, but >> I'd just as soon not have a lot of stuff I don't need installed.
I don't know such a feature, but it's probably much easier as I assume
you're just looking for `pkg autoremove`. Pkg will keep track which
packages are only installed as a dependency.
On Mon, 20 Apr 2020 06:16:31 +0000, Ted Nolan <tednolan> wrote:
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of
prerequisite packages that I didn't make a note of. I looked at "man
pkg-info", but didn't see an easy to list packages by install date so I
could just remove the lot of them. Is there a way to do that? It's
certainly not critical, but I'd just as soon not have a lot of stuff I
don't need installed.
As previously noted, pkg autoremove ought to help. Use the -n flag to
start with, just to see what it will do.
pkg query '%n %t'
will give you a name and a timestamp (but the timestamp is just an
integer, so might need a bit of postprocessing).
The following is too late for this time, but might help in the future:
What I do, before installing anything, is add this to syslog.conf.d - I
call it pkg.conf - (and reload syslogd of course):
!pkg,pkg-static
*.* /var/log/pkg.log
and optionally this to newsyslog.conf.d (I call it 'pkg'):
/var/log/pkg.log 664 20 100 * JNC
Hope this helps.
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of prerequisite packages that I didn't make a note of. I looked at "man pkg-info", but didn't
see an easy to list packages by install date so I could just remove the
lot of them. Is there a way to do that? It's certainly not critical, but I'd just as soon not have a lot of stuff I don't need
installed.
ted@loft.tnolan.com (Ted Nolan <tednolan>) writes:
I had a case today when I thought a particualar package was going to
help me out. In the end it didn't, and it installed dozens of prerequisite >> packages that I didn't make a note of. I looked at "man pkg-info", but didn't
see an easy to list packages by install date so I could just remove the
lot of them. Is there a way to do that? It's certainly not critical, but >> I'd just as soon not have a lot of stuff I don't need
installed.
An additional approach that might not always work(*) is:
ls -lah -t /var/cache/pkg/ | less
(*) if the directory got removed or cleaned up somehow or
something touched the files.
--
Christian Barthel <bch@online.de>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:14:35 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,853 |