You are not logged in.
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
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
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
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
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
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
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
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
Okay, Thank you all!
milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/
Offline