• Antefree Gnome: Cleaning from AUR


    Warning: Long text ahead. Be patient.

    Hi,

    Antefree Gnome post describes basic Antergos cleaning from [antergos] packages. Only pacman was used to remove them. Pacman doesn’t analyse AUR packages and/or dependencies. Due to this, the system may still contain some residual packages. They are reported by yay.

    We want to remove them all and to clean the system.

    Other similar posts are:

    Antergos contained a few packages with AUR origins, even though they were placed in [antergos] repo. Firstly, removal with pacman doesn’t remove auxiliary AUR packages, installed by dependencies. Secondly, some AUR packages were rebuilt for [antergos] repo. They have the same version numbers as in AUR, but higher build numbers.

    Antergos was installed here in 2014, and never re-installed since then. Residual AUR packagse from my experiments may also be present in the system. I didn’t pay much attention for AUR cleaning in the past.

    System cleanup may be done in two ways:

    1. By thorough and slow package-by-package checks and removals
    2. With fast and simple single command, to remove all packages at once

    The first way is immediately below.

    The second way is described in One command to remove them all section at the bottom of the post.

    I use dt alias in examples. It simply displays the current date and time. Ignore it.

    Caution: Before going further, do a full system backup and make sure to be able to restore it.

    1 Package-by-package removal

    Incongruences revealed by yay.

    Command

    yay
    

    Example

    $ dt && yay
    Current datetime:
    2019-07-07 11:54:17
    
    :: Synchronizing package databases...
     core is up to date
     extra is up to date
     community is up to date
     multilib is up to date
     disastrousaur is up to date
    :: Starting full system upgrade...
     there is nothing to do
    :: Searching databases for updates...
    :: Searching AUR for updates...
     -> lib32-libtxc_dxtn: local (1.0.1-5) is newer than AUR (1.0.1-1)
     -> libtxc_dxtn: local (1.0.1-6) is newer than AUR (1.0.1-1)
     -> Missing AUR Packages:  antergos-gsettings  js  js38  lib32-smpeg2  libnm-gtk  libtracker-sparql  pcmciautils  smpeg2
     there is nothing to do
    $
    

    These packages aren’t a problem. They either have higher builds than in AUR, or are installed but not used AUR packages.

    Incriminated packages are:

    • with higher builds
      1 lib32-libtxc_dxtn
      2 libtxc_dxtn
    • residual
      3 antergos-gsettings
      4 js
      5 js38
      6 lib32-smpeg2
      7 libnm-gtk
      8 libtracker-sparql
      9 pcmciautils
      10 smpeg2

    Let’s remove them one by one.

    1,1 lib32-libtxc_dxtn

    Is it used by any other installed package?

    Command

    pactree --reverse lib32-libtxc_dxtn
    

    Example

    $ dt && pactree --reverse lib32-libtxc_dxtn
    Current datetime:
    2019-07-07 11:57:28
    
    lib32-libtxc_dxtn
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Let’s remove the package.

    Command

    yay -Rcnssu lib32-libtxc_dxtn
    

    Example

    $ dt && yay -Rcnssu lib32-libtxc_dxtn
    Current datetime:
    2019-07-07 12:00:20
    
    checking dependencies...
    
    Package (1)        Old Version  Net Change
    
    lib32-libtxc_dxtn  1.0.1-5       -0.02 MiB
    
    Total Removed Size:  0.02 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing lib32-libtxc_dxtn                   [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.2 libtxc_dxtn

    Is it used by any other installed package?

    Command

    pactree --reverse libtxc_dxtn
    

    Example

    $ dt && pactree --reverse libtxc_dxtn
    Current datetime:
    2019-07-07 12:04:17
    
    libtxc_dxtn
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu libtxc_dxtn
    

    Example

    $ dt && yay -Rcnssu libtxc_dxtn
    Current datetime:
    2019-07-07 12:05:20
    
    checking dependencies...
    
    Package (1)  Old Version  Net Change
    
    libtxc_dxtn  1.0.1-6       -0.02 MiB
    
    Total Removed Size:  0.02 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing libtxc_dxtn                         [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.3 antergos-gsettings

    Is it used by any other installed package?

    Command

    pactree --reverse antergos-gsettings
    

    Example

    $ dt && pactree --reverse antergos-gsettings
    Current datetime:
    2019-07-07 12:06:35
    
    antergos-gsettings
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu antergos-gsettings
    

    Example

    $ dt && yay -Rcnssu antergos-gsettings
    Current datetime:
    2019-07-07 12:07:49
    
    checking dependencies...
    
    Package (1)         Old Version  Net Change
    
    antergos-gsettings  1.3-3         -0.05 MiB
    
    Total Removed Size:  0.05 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing antergos-gsettings                  [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.4 js

    Is it used by any other installed package?

    Command

    pactree --reverse js
    

    Example

    $ dt && pactree --reverse js
    Current datetime:
    2019-07-07 12:08:19
    
    js
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu js
    

    Example

    $ dt && yay -Rcnssu js
    Current datetime:
    2019-07-07 12:09:21
    
    checking dependencies...
    
    Package (1)  Old Version  Net Change
    
    js           24.2.0-4     -11.42 MiB
    
    Total Removed Size:  11.42 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing js                                  [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.5 js38

    Is it used by any other installed package?

    Command

    pactree --reverse js38
    

    Example

    $ dt && pactree --reverse js38
    Current datetime:
    2019-07-07 12:10:09
    
    js38
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu js38
    

    Example

    $ dt && yay -Rcnssu js38
    Current datetime:
    2019-07-07 12:11:23
    
    checking dependencies...
    
    Package (1)  Old Version  Net Change
    
    js38         38.8.0-5     -15.49 MiB
    
    Total Removed Size:  15.49 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing js38                                [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.6 lib32-smpeg2

    Is it used by any other installed package?

    Command

    pactree --reverse lib32-smpeg2
    

    Example

    $ dt && pactree --reverse lib32-smpeg2
    Current datetime:
    2019-07-07 12:19:18
    
    lib32-smpeg2
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) should be safe.

    But yay identifies also smpeg2 as a removal candidate (below). smpeg2 origins are unknown. It doesn’t present in Arch repos, in AUR, in Arch Linux Archive (ALA), and even in [antergos] repo. We can only suppose that lib32-smpeg2 was needed by smpeg2. And that smpeg2 is substituted be the modern smpeg now.

    smpeg2 is in the residual packages list too, so we’ll remove 2 packages here.

    Command (removes 2 packages)

    yay -Rcnssu lib32-smpeg2
    

    Example

    $ dt && yay -Rcnssu lib32-smpeg2
    Current datetime:
    2019-07-07 12:19:59
    
    checking dependencies...
    
    Package (2)   Old Version  Net Change
    
    smpeg2        1:2.0.0-2     -0.29 MiB
    lib32-smpeg2  2.0.0-2       -0.25 MiB
    
    Total Removed Size:  0.54 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/2) removing lib32-smpeg2                        [----------------------] 100%
    (2/2) removing smpeg2                              [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    Two packages are removed.

    1.7 libnm-gtk

    Is it used by any other installed package?

    Command

    pactree --reverse libnm-gtk
    

    Example

    $ dt && pactree --reverse libnm-gtk
    Current datetime:
    2019-07-07 12:20:46
    
    libnm-gtk
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu libnm-gtk
    

    Example

    $ dt && yay -Rcnssu libnm-gtk
    Current datetime:
    2019-07-07 12:21:39
    
    checking dependencies...
    
    Package (1)  Old Version               Net Change
    
    libnm-gtk    1.8.19dev+21+geebf7f95-1   -0.39 MiB
    
    Total Removed Size:  0.39 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing libnm-gtk                           [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.8 libtracker-sparql

    Is it used by any other installed package?

    Command

    pactree --reverse libtracker-sparql
    

    Example

    $ dt && pactree --reverse libtracker-sparql
    Current datetime:
    2019-07-07 12:22:30
    
    libtracker-sparql
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu libtracker-sparql
    

    Example

    $ dt && yay -Rcnssu libtracker-sparql
    Current datetime:
    2019-07-07 12:22:58
    
    checking dependencies...
    
    Package (1)        Old Version  Net Change
    
    libtracker-sparql  1.12.2-1      -0.95 MiB
    
    Total Removed Size:  0.95 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing libtracker-sparql                   [----------------------] 100%
    :: Running post-transaction hooks...
    (1/2) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/2) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.9 pcmciautils

    Is it used by any other installed package?

    Command

    pactree --reverse pcmciautils
    

    Example

    $ dt && pactree --reverse pcmciautils
    Current datetime:
    2019-07-07 12:23:47
    
    pcmciautils
    $
    

    No, none of installed packages depends on it. So cascading recursive removal with explicitely installed dependencies (i.e., with -css switch) must be safe. Only the package itself must be identified by yay as a removal candidate. No other packages must be removed.

    Command

    yay -Rcnssu pcmciautils
    

    Example

    $ dt && yay -Rcnssu pcmciautils
    Current datetime:
    2019-07-07 12:24:21
    
    checking dependencies...
    
    Package (1)  Old Version  Net Change
    
    pcmciautils  018-8         -0.05 MiB
    
    Total Removed Size:  0.05 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    (1/1) removing pcmciautils                         [----------------------] 100%
    :: Running post-transaction hooks...
    (1/3) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/3) Reloading device manager configuration...
    (3/3) Arming ConditionNeedsUpdate...
    $
    

    The package is removed.

    1.10 smpeg2

    The package is already removed, along with lib32-smpeg2 (above).

    Final check

    All incriminated packages are removed now. Yay must terminate without any error or warning.

    Command

    yay
    

    Example

    $ dt && yay
    Current datetime:
    2019-07-07 12:44:36
    
    :: Synchronizing package databases...
     core is up to date
     extra                   1636.4 KiB  3.69M/s 00:00 [---------] 100%
     community                  4.8 MiB  4.98M/s 00:01 [---------] 100%
     multilib is up to date
     disastrousaur is up to date
    :: Starting full system upgrade...
     there is nothing to do
    :: Searching databases for updates...
    :: Searching AUR for updates...
     there is nothing to do
    $
    

    We get a nice clean yay output. Without any error, warning or informational message.

    Conclusion 1/2

    Antefree Gnome is perfectly clean now. No residual AUR packages are present.

    Done 1/2

    2 One command to remove them all

    Instead of using single commands, all residual packages may be removed with one command only.

    Double-check removal candidates before confirming the command below. It must contain only packages, entered by you. Yay must not add any other package to removal candidates list.

    Command

    yay -Rcnssu lib32-libtxc_dxtn libtxc_dxtn antergos-gsettings js js38  lib32-smpeg2 libnm-gtk libtracker-sparql pcmciautils smpeg2
    

    As all packages are already removed with previous commands, I can’t give an example of its execution right now.

    Example

    $ dt && yay -Rcnssu lib32-libtxc_dxtn libtxc_dxtn antergos-gsettings js js38  lib32-smpeg2 libnm-gtk libtracker-sparql pcmciautils smpeg2
    Current datetime:
    2019-07-07 12:54:02
    
    error: target not found: lib32-libtxc_dxtn
    error: target not found: libtxc_dxtn
    error: target not found: antergos-gsettings
    error: target not found: js
    error: target not found: js38
    error: target not found: lib32-smpeg2
    error: target not found: libnm-gtk
    error: target not found: libtracker-sparql
    error: target not found: pcmciautils
    error: target not found: smpeg2
    $
    

    To demonstrate the command in action, I restored the system from a backup. There are three examples below:

    1. Dirty system
    2. Cleaning
    3. Clean system

    2.1 Dirty system

    $ dt && yay
    Current datetime:
    2019-07-07 14:07:22
    
    :: Synchronizing package databases...
     core is up to date
     extra is up to date
     community is up to date
     multilib is up to date
     disastrousaur is up to date
    :: Starting full system upgrade...
     there is nothing to do
    :: Searching databases for updates...
    :: Searching AUR for updates...
     -> lib32-libtxc_dxtn: local (1.0.1-5) is newer than AUR (1.0.1-1)
     -> libtxc_dxtn: local (1.0.1-6) is newer than AUR (1.0.1-1)
     -> Missing AUR Packages:  antergos-gsettings  js  js38  lib32-smpeg2  libnm-gtk  libtracker-sparql  pcmciautils  smpeg2
     there is nothing to do
    $
    

    As expected, all 10 residual packages are back here in the restored system.

    2.2 Cleaning

    $ yay -Rcnssu lib32-libtxc_dxtn libtxc_dxtn antergos-gsettings js js38  lib32-smpeg2 libnm-gtk libtracker-sparql pcmciautils smpeg2
    checking dependencies...
    
    Package (10)        Old Version               Net Change
    
    antergos-gsettings  1.3-3                      -0.05 MiB
    js                  24.2.0-4                  -11.42 MiB
    js38                38.8.0-5                  -15.49 MiB
    lib32-libtxc_dxtn   1.0.1-5                    -0.02 MiB
    lib32-smpeg2        2.0.0-2                    -0.25 MiB
    libnm-gtk           1.8.19dev+21+geebf7f95-1   -0.39 MiB
    libtracker-sparql   1.12.2-1                   -0.95 MiB
    libtxc_dxtn         1.0.1-6                    -0.02 MiB
    pcmciautils         018-8                      -0.05 MiB
    smpeg2              1:2.0.0-2                  -0.29 MiB
    
    Total Removed Size:  28.93 MiB
    
    :: Do you want to remove these packages? [Y/n] Y
    :: Processing package changes...
    ( 1/10) removing pcmciautils                       [----------------------] 100%
    ( 2/10) removing libtracker-sparql                 [----------------------] 100%
    ( 3/10) removing libnm-gtk                         [----------------------] 100%
    ( 4/10) removing lib32-smpeg2                      [----------------------] 100%
    ( 5/10) removing smpeg2                            [----------------------] 100%
    ( 6/10) removing js38                              [----------------------] 100%
    ( 7/10) removing js                                [----------------------] 100%
    ( 8/10) removing antergos-gsettings                [----------------------] 100%
    ( 9/10) removing libtxc_dxtn                       [----------------------] 100%
    (10/10) removing lib32-libtxc_dxtn                 [----------------------] 100%
    :: Running post-transaction hooks...
    (1/3) Cleaning pacman cache...
    ==> no candidate packages found for pruning
    (2/3) Reloading device manager configuration...
    (3/3) Arming ConditionNeedsUpdate...
    $
    

    I double-checked the removal candidates list. Only packages, entered by me, are present. No other packages added. Removal may be confirmed.

    2.3 Clean system

    $ dt && yay
    Current datetime:
    2019-07-07 14:15:31
    
    :: Synchronizing package databases...
     core is up to date
     extra is up to date
     community is up to date
     multilib is up to date
     disastrousaur is up to date
    :: Starting full system upgrade...
     there is nothing to do
    :: Searching databases for updates...
    :: Searching AUR for updates...
     there is nothing to do
    $
    

    The system is completely clean again.

    Conclusion 2/2

    The system may be cleaned up in either of two ways - package-by-package or with a single command. Final result is the same - perfectly clean Antefree Gnome system.

    Done 2/2

  • Great contribution to get a perfect clean system after removing Antergos stuff. Thanks!

gnome361 aur62 antefree9 cleaning6 Posts 2Views 242
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.