You are not logged in.

#1 2019-03-07 13:02:29

chrisdb
Member
From: Belgium
Registered: 2018-05-16
Posts: 155

[SOLVED] Uninstall AUR package

Hello

I can't seem tot find an answer to the following question.

What happens if I uninstall an AUR package of which the source does not include a make uninstall?

Will pacman -R be able to remove everything under /usr? Like entries in /usr/bin, /usr/lib, ..

Thx

Last edited by chrisdb (2019-03-08 10:47:29)


Failure is success in progress.
A.E.

Offline

#2 2019-03-07 13:06:05

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,414
Website

Re: [SOLVED] Uninstall AUR package

All the files a pacman package contains are kept track of. No "make uninstall" or other commands are required. See /var/lib/pacman/local/<package name>/files


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2019-03-07 14:20:59

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

Re: [SOLVED] Uninstall AUR package

Indeed, this is the whole point of a package manager.  If `make uninstall` were both reliable across all projects, and capable of actually cleaning up everything that was installed, there'd be no point in using PKGBUILDs.

If you installed a package with pacman, pacman knows about all the files installed by the package, and thus pacman can remove them.  No source code is needed, no makefile is needed, and certainly no 'uninstall' directive in any makefile is necessary.

Or another way of thinking about this, is one makepkg has produced a pkg.tar.xz file, there is no difference in pacman's eyes between that package file and one downloaded from the repos (at least none relevant to the present questions).

Last edited by Trilby (2019-03-07 14:22:39)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-03-08 10:47:04

chrisdb
Member
From: Belgium
Registered: 2018-05-16
Posts: 155

Re: [SOLVED] Uninstall AUR package

Great! It's nice to be sure :-)


Failure is success in progress.
A.E.

Offline

Board footer

Powered by FluxBB