You are not logged in.

#1 2008-11-06 15:06:48

H.Delbrook
Member
Registered: 2008-11-06
Posts: 10

[SOLVED] Are Extras via -Syu cached and double downloaded?

This is a real newbie question and I suppose it applies to other distros as well.

I'm in the middle of downloading X11 files as part of my first setup.
Things are pretty slow as I'm on ISDN (128kbits/s) and I'm wondering why I have to download 77mb of files when according to pacman, the system is fully updated (core and extras).
Now I've peeked into my mirror's /extra folder (using another computer) and I can see the files that I'm downloading.
If pacman reckons I'm already up-to-date, then why is it downloading it again?

I'm following the Beginner's Guide and have intitiated 'pacman -S xorg'.

Am I doing something wrong?


"Abby someone... Oh that's right! Abby Normal"

Offline

#2 2008-11-06 15:41:47

mentallaxative
Member
From: Australia
Registered: 2008-07-14
Posts: 134
Website

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

If you haven't installed xorg before, you will need to download it. The upgrade command (pacman -Syu) only updates packages that are already installed. I believe the installation procedure only gives you a minimal set of packages that don't include xorg.

I did an ftp install and was required to download it.

Offline

#3 2008-11-06 15:46:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

The packages are cached in /var/cache/pacman/pkg.  If the file is in there, then it won't be downloaded again.

Offline

#4 2008-11-06 15:56:10

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

Are you sure you are not confusing that the local sync db is up to date, with if the system itself is up to date or not?

[oh@Alice][~]%spm -Syu
:: Synchronising package databases...
 testing is up to date
 archlinuxfr is up to date
 core is up to date
 extra is up to date
 community is up to date
 haskell is up to date
:: Starting full system upgrade...
warning: libtorrent: local (0.12.3-1) is newer than community (0.11.9-2)
warning: xmobar: local (0.9-4) is newer than haskell (0.9-1)
warning: zsh: local (4.3.6-1) is newer than extra (4.3.5-2)
resolving dependencies...
looking for inter-conflicts...

Targets (2): ghc-6.10.1-1  qt-4.4.3-2  

Total Download Size:    103.39 MB
Total Installed Size:   624.86 MB

Proceed with installation? [Y/n] n
[oh@Alice][~]%

As you can see, the local sync db is up to date, but the system itself is not.

Last edited by Mr.Elendig (2008-11-06 15:56:22)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2008-11-07 05:16:00

H.Delbrook
Member
Registered: 2008-11-06
Posts: 10

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

Thanks for the info.
I think I understand it, that pacman only updates previously installed (local) packages. The -S switch downloads requested packages.

Thanks
---------------
PS I can't change the post header to 'Solved'


"Abby someone... Oh that's right! Abby Normal"

Offline

#6 2008-11-07 16:11:14

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

-Syu = -Sy + -Su
-Sy = Download a new sync database from the servers. (containing info about all the packages on the servers)
-Su = Upgrade all local packages to the same version as on the servers.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2008-11-07 16:47:35

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] Are Extras via -Syu cached and double downloaded?

H.Delbrook wrote:

PS I can't change the post header to 'Solved'

Why not? You just have to edit your first post.
I have edited it for you this time wink


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB