You are not logged in.

#1 2011-08-10 21:53:32

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Does pacman erase unneeded files of outdated packages when upgrading?

I was just wondering: If you update a package, and the new version of the package uses new files, but doesn't need other older files, will pacman automatically delete those files?

I would think that it does, but i'd just like to verify.

Thanks!


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2011-08-10 22:37:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Does pacman erase unneeded files of outdated packages when upgrading?

what files are you talking about?

configuration files or executable files?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-08-10 22:49:36

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Does pacman erase unneeded files of outdated packages when upgrading?

pacman removes the old version of the package, and then installs the new version. When it's done all files that belonged to the old version are gone, and all files that belong to the new version are where they should be.

There are exceptions, notably config files, that are handled by the pacnew process.

Offline

#4 2011-08-10 22:58:09

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: Does pacman erase unneeded files of outdated packages when upgrading?

I think he means that it works like delta repos, but as tomk explains it doesn't wink

Offline

#5 2011-08-11 19:52:53

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 105

Re: Does pacman erase unneeded files of outdated packages when upgrading?

Actually.. if you uninstall pacman, /var/cache/pacman/pkg doesn't get deleted... And also a lot of others directories in /usr belongings to other packages remain in place.
Not to mention all the files created by programs at runtime.

Offline

#6 2011-08-27 06:45:31

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Does pacman erase unneeded files of outdated packages when upgrading?

Ok, cool, thanks for the input. So I guess as tomk said, old version is completely wiped out, then new version installed (except for customized configuration files of course).


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB