You are not logged in.

#1 2012-10-19 15:29:28

wangsiyuan
Member
Registered: 2011-07-29
Posts: 66

[SOLVED] how to remove package installed by pacman -U

hi,
I use Arch Build System(abs) build a package. I install it with
pacman -U xxx

how to remove it?

thank you!

Last edited by wangsiyuan (2012-10-19 16:00:13)

Offline

#2 2012-10-19 15:30:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] how to remove package installed by pacman -U

The same way as any other.

Offline

#3 2012-10-19 15:47:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] how to remove package installed by pacman -U

Expanding on karol,  That would be sudo pacman -R <PackageName>
If you cannot figure out the exact name of the package (it is not the same as the name of archive you installed), use pacman -Qsq to provide a list of installed packages.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2012-10-19 15:55:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] how to remove package installed by pacman -U

ewaller wrote:

If you cannot figure out the exact name of the package (it is not the same as the name of archive you installed)

Any examples of such packages?

ewaller wrote:

use pacman -Qsq to provide a list of installed packages.

'pacman -Qq' is enough.

'pacman -U' operations are logged too, so check /var/log/pacman.log

grep 'pacman -U' /var/log/pacman.log
[2012-07-27 03:24] Running 'pacman -U /home/karol/apps/dwm/dwm-6.0-1-i686.pkg.tar.gz

Offline

#5 2012-10-19 16:02:26

wangsiyuan
Member
Registered: 2011-07-29
Posts: 66

Re: [SOLVED] how to remove package installed by pacman -U

thank you! ewaller and karol

Offline

#6 2012-10-19 16:20:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] how to remove package installed by pacman -U

Hi Karol,

I read my post and guess I was not clear.  Look at the directory for the following package:

ewaller@odin:~/devel/build/any2dvd 1153 %ll
total 628
-rw-r--r-- 1 ewaller users   1073 Oct  3  2011 PKGBUILD
-rw-r--r-- 1 ewaller users 303352 Oct  8 18:25 any2dvd-0.34-5-any.pkg.tar.xz
-rw-r--r-- 1 ewaller users 321494 Oct  8 18:25 any2dvd-0.34.tar.bz2
drwxr-xr-x 3 ewaller users   4096 Oct  8 18:25 pkg
drwxr-xr-x 3 ewaller users   4096 Oct  8 18:25 src
ewaller@odin:~/devel/build/any2dvd 1154 %

One installs this with pacman -U any2dvd-0.34-5-any.pkg.tar.xz
To uninstall, it is pacman -R any2dvd
What I meant is that the commands are asymmetric.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB