You are not logged in.

#1 2013-11-19 16:25:51

raphix
Member
From: France
Registered: 2008-09-27
Posts: 56
Website

[Solved] Pacman: is there an option to only download updates

Hello,
I cannot find a way to only download packages and install them later. My use case: I have a laptop and a fast connexion at university and I would like to download the packages there. Since I am working, downloading is okay, but installing requires more computing power and regurlarly freezes my machine, which I'd like to avoid. I would like to run the installing part later, say at home for instance.
The manual indicates -w to be an option, but when I run

# pacman -Sw

I get

error: no target specified

as if I must indicate a package name.

I expected to be able to run

pacman -Syw

at work, and then

pacman -Su 

at home.

Is there an option hidden in one of my config files preventing me to do this? Or another way to do it?

Last edited by raphix (2013-11-19 16:39:11)


configs files on github  -- keep up the good work, arch devs

Offline

#2 2013-11-19 16:29:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [Solved] Pacman: is there an option to only download updates

Not understanding your rational, but I think `pacman -Syuw` should work.

EDIT: Edited my post for accuracy based on apg's post 2 down from mine.

Last edited by graysky (2013-11-19 16:38:14)

Offline

#3 2013-11-19 16:30:48

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,550
Website

Re: [Solved] Pacman: is there an option to only download updates

Use shell redirection to pipe the list of updates into it, but use a fake sync database (i.e. like checkupdates uses), or else you run the risk of partial updates or broken packages if you happen to -S something before you complete the update.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-11-19 16:36:21

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [Solved] Pacman: is there an option to only download updates

You want -Suw

Offline

#5 2013-11-19 16:38:40

raphix
Member
From: France
Registered: 2008-09-27
Posts: 56
Website

Re: [Solved] Pacman: is there an option to only download updates

Thank you very much, apg!


configs files on github  -- keep up the good work, arch devs

Offline

#6 2013-11-19 16:39:33

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] Pacman: is there an option to only download updates

pacman -Syw doesn't work because -Sy doesn't download packages, it just updates databases. pacman -Syuw is what you want.

And pacman -Sw doesn't work because you're not giving it anything to work with. It's intended to be used like pacman -Sw <package>.

Last edited by alphaniner (2013-11-19 16:40:57)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#7 2013-11-19 16:42:58

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

Re: [Solved] Pacman: is there an option to only download updates

apg wrote:

You want -Suw

I think OP needs 'pacman -Syuw':

$ sudo pacman -Syuw
:: Synchronizing package databases...
 testing is up to date
 community-testing is up to date
 core is up to date
 extra is up to date
 community is up to date
 xyne-i686 is up to date
 infinality-bundle is up to date
:: Starting full system upgrade...
resolving dependencies...

Packages (1):

Name           Old Version  New Version  Net Change  Download Size

extra/firefox  25.0-1       25.0.1-1     0.00 MiB        21.75 MiB

Total Download Size:   21.75 MiB

:: Proceed with download? [Y/n] 
(1/1) checking keys in keyring                                                                  [########################################################] 100%
(1/1) checking package integrity                                                                [########################################################] 100%

Now the package sits in the cache and you can update your system at will with 'pacman -Su'.

Last edited by karol (2013-11-19 16:45:20)

Offline

#8 2013-11-19 17:49:22

raphix
Member
From: France
Registered: 2008-09-27
Posts: 56
Website

Re: [Solved] Pacman: is there an option to only download updates

After reading your remarks (thanks to all of you), I think the manual could be amended, since "-w Retrieve all packages from the server, but do not install/upgrade anything" lead me to assume that the option "-w" was sufficient to "retrieve" packages.

I think there could be to parts, one to precise that it can be used alone, pacman -Sw <package>, and one to mention its use in conjonction with "-u", pacman -Syuw. I don't know how/whom to propose this modification (directly by email to pacman maintainers?)

Last edited by raphix (2013-11-19 17:52:59)


configs files on github  -- keep up the good work, arch devs

Offline

#9 2013-11-19 19:28:19

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] Pacman: is there an option to only download updates

You need to think of the switch description in context and focus on 'all packages' instead. What does 'all packages' consist of? The only reasonable answer is that it depends on the rest of the command.

Besides, one could also run pacman -Sy; pacman -Suw, pacman -Syyuw, pacman -Syy; pacman -Suw, etc. So specifying all uses of the switch is impractical.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB