Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: 20.04: 'apt-get upgrade' added a huge load of packages and threads

  1. #11
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: 20.04: 'apt-get upgrade' added a huge load of packages and threads

    In response to LHammonds, yes of course... Then this:
    Code:
    egrep -a1 "apt install" /var/log/apt/history.log
    Returns human readable format in the form of 4 lines each, for each time a user manually installed a package, like this:
    Code:
    Start-Date: <YYYY-MM-DD><HH:MM:SS>
    Commandline: apt install <PackageName>
    Requested-By: <UserID> (<UID>)
    --
    # For Example:
    Start-Date: 2021-08-14  00:46:32
    Commandline: apt install default-jdk
    Requested-By: mafoelffen (1001)
    --
    There is your manually installed audit trail... Of course that will not show if it was initially installed as Desktop... But this will.
    Code:
    head -n 10 /var/log/installer/syslog
    Last edited by MAFoElffen; August 20th, 2021 at 02:14 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  2. #12
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: 20.04: 'apt-get upgrade' added a huge load of packages and threads

    I'm lazy and use logwatch to get a daily report on all my systems. There are different levels, but it will show any installed or upgraded packages, disk space issues (though it freaks out over small partitions that aren't any where near full) and really want to send an email, so an MTA for outbound email is desirable.
    I keep 6 months of the logwatch emails ... on the first of the month, I'll go to the oldest month and delete those emails.
    A few months ago, I did ask the logwatch maintainer to modify the default df output to exclude fake file systems and loop (snaps) devices. Perhaps in 3 yrs, those changes will make it to the Ubuntu package? There is a local override possible.

    In /etc/logwatch/conf/services/zz-disk_space.conf
    Code:
    $df_options = "-hlT -x squashfs -x tmpfs -x devtmpfs"
    Here's the ansible task for that:
    Code:
    - name: Logwatch local df options
      copy:
        src: files/etc_logwatch_conf_services_zz-disk_space.conf
        dest: /etc/logwatch/conf/services/zz-disk_space.conf
        mode: '0644'
        owner: root
        group: root
    Just put the file in files/etc_logwatch_conf_services_zz-disk_space.conf.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •