You are not logged in.

#1 2011-06-09 02:49:33

Czarcasmo
Member
From: Colorado Springs, Colorado
Registered: 2011-04-20
Posts: 82

[SOLVED] Update & Install Size

Hi all.

Forgive the idiotic question, but when I -Syu my system and it displays the installed size on my hard drive, is that *new* space that's being used or are the packages that are being updated being overwritten? In theory that would make it possible to have a neutral or small gain/loss as opposed to the large numbers I frequently see when I update. Hopefully that question made sense.

Thanks for the help; this is a great community.

Czar.

Last edited by Czarcasmo (2011-06-09 03:29:30)


Laptop: Lenovo X1 Carbon, Core i7 2.0Ghz, 8GB RAM, Gnome 3.16

Offline

#2 2011-06-09 03:14:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Update & Install Size

It's the install size of the new packages and does not take into account of what's being removed. This has been brought up here before with no final solution that I'm aware of. It's a bit tricky to search for, so it's understandable that you didn't find an answer.

Offline

#3 2011-06-09 03:16:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Update & Install Size

If you look in /var/cache/pacman/pkg/ you will see that packages are not overwritten - this allows you to downgrade a package if necessary...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2011-06-09 03:18:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Update & Install Size

jasonwryan wrote:

If you look in /var/cache/pacman/pkg/ you will see that packages are not overwritten - this allows you to downgrade a package if necessary...

Of course. I was thinking of upgrade/replace and not total disc size.

Offline

#5 2011-06-09 03:23:07

Czarcasmo
Member
From: Colorado Springs, Colorado
Registered: 2011-04-20
Posts: 82

Re: [SOLVED] Update & Install Size

Hey guys,

Thank you both for the quick reply. I'm assuming that what is kept in /var/cache/pacman/pkg/ is simply one version back, not an entire version history, yes? That could be real hell on my laptop in six months.  smile

Thanks,
Czar.

EDIT: Just checked myself on a test machine I have in my lab. It seems to keep...well...everything. I'm assuming there's no easy way to keep this 'clean'?

Last edited by Czarcasmo (2011-06-09 03:27:32)


Laptop: Lenovo X1 Carbon, Core i7 2.0Ghz, 8GB RAM, Gnome 3.16

Offline

#6 2011-06-09 03:28:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Update & Install Size

Czarcasmo wrote:

Hey guys,

Thank you both for the quick reply. I'm assuming that what is kept in /var/cache/pacman/pkg/ is simply one version back, not an entire version history, yes? That could be real hell on my laptop in six months.  smile

Thanks,
Czar.

No. Arch expects you to manage your own system. There are a couple of pacman flags that can help. Reading pacman's man page is very helpful for understanding the options.

Offline

#7 2011-06-09 03:28:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Update & Install Size

Read man pacman and look for -Sc and -Scc (cache clean).

# edit: too slow sandman smile

# edit: damn, didn't look up (shakes fist at skottish)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2011-06-09 03:28:29

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] Update & Install Size

Czarcasmo wrote:

Hey guys,

Thank you both for the quick reply. I'm assuming that what is kept in /var/cache/pacman/pkg/ is simply one version back, not an entire version history, yes? That could be real hell on my laptop in six months.  smile

Thanks,
Czar.

EDIT: Just checked myself on a test machine I have in my lab. It seems to keep...well...everything. I'm assuming there's no easy way to keep this 'clean'?

Everything is kept until you do a 'pacman -Sc' or 'pacman -Scc'
Check man pacman for details

Beaten by 4 seconds!

Last edited by sand_man (2011-06-09 03:28:56)


neutral

Offline

#9 2011-06-09 03:30:43

Czarcasmo
Member
From: Colorado Springs, Colorado
Registered: 2011-04-20
Posts: 82

Re: [SOLVED] Update & Install Size

Thanks everyone for the quick replies AND (too boolean?) not out-and-out telling me to RTFM.

Cheers,
Czar.


Laptop: Lenovo X1 Carbon, Core i7 2.0Ghz, 8GB RAM, Gnome 3.16

Offline

#10 2011-06-09 03:38:39

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Update & Install Size

jasonwryan wrote:

# edit: damn, didn't look up (shakes fist at skottish)

skottish tosses warm tortilla at fist. Rock-paper-scissors become ingredients for tacos. Czarcasmo eats well today.

Last edited by skottish (2011-06-09 03:44:02)

Offline

#11 2011-06-09 03:55:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Update & Install Size

skottish wrote:
jasonwryan wrote:

# edit: damn, didn't look up (shakes fist at skottish)

skottish tosses warm tortilla at fist. Rock-paper-scissors become ingredients for tacos. Czarcasmo eats well today.

Tortilla? WTF!? Isn't that some sort of limp taco?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2011-06-09 09:36:41

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

Re: [SOLVED] Update & Install Size

It's somewhat related to https://bugs.archlinux.org/task/12566

Offline

#13 2011-06-09 10:46:49

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] Update & Install Size

wrong thread...

Last edited by sand_man (2011-06-09 10:48:12)


neutral

Offline

#14 2011-06-09 10:46:55

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

Re: [SOLVED] Update & Install Size

Czarcasmo wrote:

Hey guys,

Thank you both for the quick reply. I'm assuming that what is kept in /var/cache/pacman/pkg/ is simply one version back, not an entire version history, yes? That could be real hell on my laptop in six months.  smile

Thanks,
Czar.

EDIT: Just checked myself on a test machine I have in my lab. It seems to keep...well...everything. I'm assuming there's no easy way to keep this 'clean'?

There's this script --> https://bbs.archlinux.org/viewtopic.php?id=9104 , which let's you have better control over which packages to keep in the cache. I have never tried it myself, so can't say how well it works.

Offline

#15 2011-06-09 10:49:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Update & Install Size


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2011-06-09 12:50:05

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Update & Install Size

FYI, the next release of pacman will have 'net upgrade size' listed for any sync operation that updates a package:

# pacman -Su
Password: 
:: Starting full system upgrade...
warning: make: ignoring package upgrade (3.81-5 => 3.82-3)
warning: qemu: ignoring package upgrade (0.13.0-1 => 0.14.1-1)
resolving dependencies...
looking for inter-conflicts...

Targets (1):

Name  Old Version  New Version         Size

qt    4.7.3-2      4.7.3-3        24.59 MiB

Total Download Size:    24.59 MiB
Total Installed Size:   98.12 MiB
Net Upgrade Size:       -6.77 MiB

Proceed with installation? [Y/n] 

Offline

#17 2011-06-09 13:00:35

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

Re: [SOLVED] Update & Install Size

@falconindy
I've seem http://mailman.archlinux.org/pipermail/ … 13211.html patch, but https://bugs.archlinux.org/task/12566 it's not yet marked as solved. According to the ML post, it should work for upgrade (-U) operations too.
Just to be sure: 'Net Upgrade Size:       -6.77 MiB' means the new version has the installed size over 6 MB smaller than the old version and it doesn't take the Download Size into account, right?

Offline

#18 2011-06-09 16:17:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Update & Install Size

Correct. It's the net change in hard disk usage after the transaction.

Offline

Board footer

Powered by FluxBB