Announcement

Collapse
No announcement yet.

Apt 2.0

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apt 2.0

    TuxDigital's This Week in LINUX has a bit on APT 2.0: https://youtu.be/SHISgDS182A?t=509

    I found the part about apt-patterns nice.

    For example, apt list ~c lists all residual config files. Running the command in Kubuntu 20.04 ...

    Code:
    dkb@dkb-kuff:~$ apt list ~c | nl
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
        1  Listing...
        2  accountwizard/focal,now 4:19.04.3-0ubuntu1 amd64 [residual-config]
        3  akonadi-backend-mysql/focal,focal,now 4:19.04.3-0ubuntu4 all [residual-config]
           ...
       44  linux-modules-extra-5.4.0-9-generic/focal,now 5.4.0-9.12 amd64 [residual-config]
       45  mariadb-common/focal,focal,now 1:10.3.22-1 all [residual-config]
       46  pim-data-exporter/focal,now 4:19.04.3-0ubuntu1 amd64 [residual-config]
       47  pim-sieve-editor/focal,now 4:19.04.3-0ubuntu1 amd64 [residual-config]
       48  printer-driver-gutenprint/focal,now 5.3.3-4 amd64 [residual-config]
       49  python3.7-minimal/now 3.7.6-1ubuntu2 amd64 [residual-config]
    dkb@dkb-kuff:~$
    I guess sudo apt purge ~c would get rid of them. This seems more convenient than using dpkg.
    Kubuntu 20.04

    #2
    Using '~c' would eliminate the outside chance that some's home account could be matched with just ~c
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Originally posted by GreyGeek View Post
      Using '~c' would eliminate the outside chance that some's home account could be matched with just ~c
      Well, it's in the context of sudo apt purge ….

      Anyway, the longer (and safer) version is sudo apt purge ?config-files.
      Kubuntu 20.04

      Comment

      Working...
      X