Yay: cleanup after deciding to abort an install

yay x
<select package to install>
<decide to abort>

I did yay x again and see the following:

Sync Make Dependency (1): intltool-0.51.0-6
Sync Dependency (1): openssl-1.1-1.1.1.v-1
Sync Check Dependency (2): xorg-server-xvfb-21.1.8-2, gdb-13.2-1
AUR Explicit (1): netactview-0.6.4-5
AUR Dependency (1): libglade-2.6.4-8
AUR Make Dependency (1): python2-2.7.18-8
:: PKGBUILD up to date, skipping download: netactview
:: PKGBUILD up to date, skipping download: libglade
:: PKGBUILD up to date, skipping download: python2
  3 libglade                                 (Build Files Exist)
  2 python2                                  (Build Files Exist)
  1 netactview                               (Build Files Exist)

The last part says (Build Files Exist). Is there a smart way to cleanup and remove these? pacman -Qtdq | pacman -Rns - did not help - probably because I used yay to install?

My machine does not have python2 and I aborted the installation because it wanted to install a whole new language. I still don’t have python2 but those build files exist and I suspect they are large. Can I get rid of them?

The installation asked me to enter password to complete near the end, I forced this step to fail. Is there a better way to abort an installation?

Thanks.

netactview depends on libglade which requires python2 to build. Remove netactview if you don’t want to build python2.

See:

man yay
EXTENDED PACMAN OPERATIONS

-Sc    Yay  will  also  clean  cached AUR package and any untracked Files in the cache. Cleaning untracked files will wipe any downloaded sources or built packages but will keep
              already downloaded vcs sources.

If I understand correctly, Netcatview is not installed. How do you suggest removing it? The build packages (netcatview, libglade and python2) survived yay -Sc.

Thanks.

Well, then don’t install it. :wink:

The build files continue to survive.

      -a, --aur
              Assume  all  targets are from the AUR.

:point_down:

yay -Sc -a
$ yay -Sc
Packages to keep:
  All locally installed packages

:: Do you want to remove all other packages from cache? [Y/n] 

:: Do you want to remove unused repositories? [Y/n] 

:: Do you want to remove all other AUR packages from cache? [Y/n] 

:: Do you want to remove ALL untracked AUR files? [Y/n] 

vs

$ yay -Scc

:: Do you want to remove ALL files from cache? [y/N] 

:: Do you want to remove unused repositories? [Y/n] 

:: Do you want to remove ALL AUR packages from cache? [Y/n]
1 Like