• Listing installed packages by install date?

    From Felix Palmen@21:1/5 to All on Mon Apr 20 08:44:09 2020
    * 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.

    --
    Dipl.-Inform. Felix Palmen <felix@palmen-it.de> ,.//..........
    {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de
    {pgp public key} http://palmen-it.de/pub.txt // """""""""""
    {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to All on Mon Apr 20 06:16:31 2020
    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.
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Eager@21:1/5 to All on Mon Apr 20 08:31:28 2020
    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.



    --
    Using UNIX since v6 (1975)...

    Use the BIG mirror service in the UK:
    http://www.mirrorservice.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Eager@21:1/5 to Bob Eager on Mon Apr 20 08:41:48 2020
    On Mon, 20 Apr 2020 08:31:28 +0000, Bob Eager wrote:

    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

    As shown in this quoted version, that's two separate lines.

    and optionally this to newsyslog.conf.d (I call it 'pkg'):

    /var/log/pkg.log 664 20 100 * JNC

    Hope this helps.





    --
    Using UNIX since v6 (1975)...

    Use the BIG mirror service in the UK:
    http://www.mirrorservice.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From mechanic@21:1/5 to All on Mon Apr 20 12:18:29 2020
    On 20 Apr 2020 06:16:31 GMT, 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.

    Better to have and not need than to need and not have.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to Felix Palmen on Mon Apr 20 12:33:09 2020
    In article <qusvmg-gma1.ln1@mail.home.palmen-it.de>,
    Felix Palmen <felix@palmen-it.de> wrote:
    * 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.


    Ah, thanks!
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to news0073@eager.cx on Mon Apr 20 12:34:46 2020
    In article <hg54v0Fj0ceU2@mid.individual.net>,
    Bob Eager <news0073@eager.cx> wrote:
    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.


    Thanks. Epoch timestamps are no problem..
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Barthel@21:1/5 to ted@loft.tnolan.com on Mon Apr 20 20:12:50 2020
    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>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to bch@online.de on Mon Apr 20 19:43:09 2020
    In article <87v9luc9gd.fsf@barthel.ch>,
    Christian Barthel <bch@online.de> wrote:
    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>

    OK, I was wondering where that stuff was stored.

    Thanks
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)