You are not logged in.

#1 2013-01-27 05:11:02

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

How does pacman -R work to remove an application?

Hi All, I want to know how pacman -R work to remove an application.

Does it use the 'rm' utillity to remove the application's files? If so, can I let pacman to use 'srm' instead of 'rm'? If it is possible, how?


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#2 2013-01-27 05:45:08

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: How does pacman -R work to remove an application?

It uses unlink(2), which is the same system call rm uses, and you can't make it use something else without modifying the code.

Relevant code is in lib/libalpm/remove.c.

Offline

#3 2013-01-27 06:02:44

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: How does pacman -R work to remove an application?

How 'bout, how do I see where a package that I've installed is installed to?
So, I can remove normally with pacman and remove the left overs by my self later.


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#4 2013-01-27 06:14:45

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: How does pacman -R work to remove an application?

You can see all the files installed by a package like this:

pacman -Ql package

However any files that are created by the program post-installation (maybe config files or something) will not be in the list.

Last edited by anonymous_user (2013-01-27 06:15:57)

Offline

#5 2013-01-27 06:59:08

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: How does pacman -R work to remove an application?

anonymous_user wrote:

You can see all the files installed by a package like this:

pacman -Ql package

However any files that are created by the program post-installation (maybe config files or something) will not be in the list.

Thanks, that was helpful.

Btw, the "any files that are created by the program post-installation (maybe config files or something)", are those files the so-called 'dot files' in the user's home directory?

Last edited by milo64 (2013-01-27 07:04:17)


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#6 2013-01-27 12:39:02

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

Re: How does pacman -R work to remove an application?

milo64 wrote:

Btw, the "any files that are created by the program post-installation (maybe config files or something)", are those files the so-called 'dot files' in the user's home directory?

Yes it's about the dotfiles, files in ~/.config etc.

Offline

#7 2013-01-27 12:54:49

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: How does pacman -R work to remove an application?

karol wrote:
milo64 wrote:

Btw, the "any files that are created by the program post-installation (maybe config files or something)", are those files the so-called 'dot files' in the user's home directory?

Yes it's about the dotfiles, files in ~/.config etc.

That would include /etc too.

Offline

#8 2013-01-28 01:25:37

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: How does pacman -R work to remove an application?

x33a wrote:
karol wrote:
milo64 wrote:

Btw, the "any files that are created by the program post-installation (maybe config files or something)", are those files the so-called 'dot files' in the user's home directory?

Yes it's about the dotfiles, files in ~/.config etc.

That would include /etc too.

Only if the app is run using root.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2013-01-28 13:31:17

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: How does pacman -R work to remove an application?

Okay, Thank you all! smile


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

Board footer

Powered by FluxBB