You are not logged in.

#1 2019-02-07 17:40:14

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

How can I uninstall programs that were installed as a group?

I installed the "nvidia" package, which prompted me to install several other packages:

warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-utils dependency

Packages (4) egl-wayland-1.1.2-1  eglexternalplatform-1.0+3+g7c8f8e2-1  nvidia-utils-415.27-1  nvidia-415.27-4

Total Installed Size:  195.18 MiB

:: Proceed with installation? [Y/n] 

It turns out trying to use the Nvidia driver screws everything up, so I uninstalled it. The problem is, my usual "pacman -Rnsc nvidia" *only* uninstalls the nvidia package. I've tried a few different flags, but, consistently, only "nvidia" is removed.

I suppose this means that some dependency was written off somewhere, or that the dependency chain isn't as straightforward as I thought it was. In any case, is there a command that deletes all of those packages?
What I ended up doing was using this script I found:

for i in $(pacman -Qq)
do
  grep "\[ALPM\] installed $i" /var/log/pacman.log
done | \
  sort -u | \
  sed -e 's/\[ALPM\] installed //' -e 's/(.*$//'

... and deleting the packages that were installed at the same time as "nvidia". I would rather just use a simple pacman command, though. Is there something that would achieve that?

Offline

#2 2019-02-07 18:40:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,531
Website

Re: How can I uninstall programs that were installed as a group?

The problem is specific to these packages and is highlighted in the installation output you presented: there is a circular dependency.  So neither of the packages in that dependency cycle will be removed unless you specify that both of them should be:

pacman -Rsn eglexternalplatform  nvidia-utils

EDIT: wait, this dependency cycle doesn't exist in the arch repos.  Are you using a derivative distro?

Last edited by Trilby (2019-02-07 18:42:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-02-07 19:33:24

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: How can I uninstall programs that were installed as a group?

Thread title is incorrect, they were not installed as a group. The "group" keyword in makepkg/pacman is not involved in any way.

Furthermore, pacman was supposed to learn how to recursively remove packages with a dependency cycle, in https://bugs.archlinux.org/task/41031 which was released as pacman 5.0.2

Please post the output of pacman -V and pacman --debug -Rs nvidia


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2019-02-07 21:01:32

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: How can I uninstall programs that were installed as a group?

I'm not using any derivative distros, no. This is straight-arch (that I downloaded yesterday).

 .--.                  Pacman v5.1.2 - libalpm v11.0.2
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2018 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

Here is the output of pacman --debug -Rs nvidia

Offline

#5 2019-02-07 21:48:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,659

Re: How can I uninstall programs that were installed as a group?

debug: returning error 32 from alpm_db_get_pkg : could not find or read package
error: target not found: nvidia

I guess it makes more sense w/ the problem present…

Edit: spelling…

Last edited by seth (2019-02-07 21:48:28)

Offline

#6 2019-02-08 00:49:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,531
Website

Re: How can I uninstall programs that were installed as a group?

Please post the output of `pacman -Qi eglexternalplatform`.

According to your first post, your pacman thinks that this package depends on nvidia-utils, but the package in the repos does not.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2019-02-08 04:30:24

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: How can I uninstall programs that were installed as a group?

I installed nvidia again to run that command:

[javi@elmina ~]$ pacman -Qi eglexternalplatform
Name            : eglexternalplatform
Version         : 1.0+3+g7c8f8e2-1
Description     : EGL External Platform interface
Architecture    : any
URL             : https://github.com/NVIDIA/eglexternalplatform
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : mesa
Optional Deps   : None
Required By     : egl-wayland
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 18.00 KiB
Packager        : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date      : Sat Aug 18 06:29:37 2018
Install Date    : Thu Feb 7 23:28:22 2019
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Please keep in mind, though, that I uninstall these packages immediately (using nvidia breaks my system).

Offline

#8 2019-02-08 07:53:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,659

Re: How can I uninstall programs that were installed as a group?

For a recursive dependency list, try

pactree eglexternalplatform

.
W/ the installed nvidia stack, running "pacman --debug -Rs nvidia" would produce the relevant debug data for the apparent conflict.

Offline

#9 2019-02-08 12:45:11

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: How can I uninstall programs that were installed as a group?

Oh! Sorry about that. Here's the output of "pacman --debug -Rs nvidia". The output of "pactree eglexternalplatform"

eglexternalplatform
└─mesa
  ├─libdrm
  │ └─libpciaccess
  │   └─glibc
  │     ├─linux-api-headers provides linux-api-headers>=4.10
  │     ├─tzdata
  │     └─filesystem
  │       └─iana-etc
  ├─wayland
  │ ├─glibc
  │ ├─libffi
  │ │ └─glibc
  │ ├─expat
  │ │ └─glibc
  │ └─libxml2
  │   ├─zlib
  │   │ └─glibc
  │   ├─readline
  │   │ ├─glibc
  │   │ ├─ncurses
  │   │ │ ├─glibc
  │   │ │ └─gcc-libs
  │   │ │   └─glibc provides glibc>=2.27
  │   │ └─ncurses provides libncursesw.so=6-64
  │   ├─ncurses
  │   ├─xz
  │   │ └─bash provides sh
  │   │   ├─readline provides readline>=7.0
  │   │   ├─glibc
  │   │   └─ncurses
  │   └─icu
  │     ├─gcc-libs
  │     └─bash provides sh
  ├─libxxf86vm
  │ ├─libxext
  │ │ ├─libx11
  │ │ │ ├─libxcb
  │ │ │ │ ├─xcb-proto provides xcb-proto>=1.12
  │ │ │ │ ├─libxdmcp
  │ │ │ │ │ ├─xorgproto provides xproto
  │ │ │ │ │ └─glibc
  │ │ │ │ └─libxau
  │ │ │ │   ├─glibc
  │ │ │ │   └─xorgproto provides xproto
  │ │ │ ├─xorgproto provides xproto
  │ │ │ └─xorgproto provides kbproto
  │ │ └─xorgproto provides xextproto
  │ └─xorgproto provides xf86vidmodeproto
  ├─libxdamage
  │ ├─libxfixes provides libxfixes>=4.0.4
  │ │ ├─libx11
  │ │ └─xorgproto provides fixesproto
  │ └─xorgproto provides damageproto
  ├─libxshmfence
  │ └─glibc
  ├─libelf
  │ ├─gcc-libs
  │ ├─zlib
  │ ├─bzip2
  │ │ ├─glibc
  │ │ └─bash provides sh
  │ └─xz
  ├─libomxil-bellagio
  │ └─glibc
  ├─libunwind
  │ ├─glibc
  │ └─xz
  ├─llvm-libs
  │ ├─gcc-libs
  │ ├─zlib
  │ ├─libffi
  │ ├─libedit
  │ │ └─ncurses
  │ ├─ncurses
  │ └─libxml2
  ├─lm_sensors
  │ └─perl
  │   ├─gdbm provides gdbm>=1.17
  │   │ ├─glibc
  │   │ └─bash provides sh
  │   ├─db
  │   │ ├─gcc-libs
  │   │ └─bash provides sh
  │   └─glibc
  └─libglvnd
    ├─libxext
    ├─mesa
    └─mesa provides opengl-driver

Is there any way I can help? I feel like I'm just shovelling information to you guys. So the problem is that, when I uninstall nvidia, pacman really *should* be uninstalling these other four packages?

Offline

#10 2019-02-08 13:30:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,659

Re: How can I uninstall programs that were installed as a group?

So there seems no curcular dependency.
Anyway, it would seem that the system fails to remove nvidia-utils (and its dependencies egl-wayland -> eglexternalplatform) but since mesa is mandatory, I don't see why (unless you installed other stuff afterwards)

pacman -Qi nvidia-utils

Offline

#11 2019-02-08 13:58:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,531
Website

Re: How can I uninstall programs that were installed as a group?

So was the output in your first post paraphrased and possibly inaccurate?  Did you get the same output the second time you installed nvidia?  Or were you able to recursively uninstall the second time with `pacman -Rsn nvidia`?

That odd message in the first post just doesn't make any sense, and I doubt it could be a coincidence.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB