Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that pacman -Su upgrades all packages. But how can I get just the list of packages that need upgrading?

share|improve this question
up vote 7 down vote accepted

Looking at the man page something like

pacman -Syu

to sync the database up to the latest version followed by

pacman -Qu

to

-u, --upgrades

Restrict or filter output to packages that are out of date on the

local system. (Only package versions are used to find outdated packages, replacements are not checked here.) This option works best if the sync database is refreshed using -Sy.

share|improve this answer
    
Thanks, this is what I was looking for. – eugene y Aug 11 '11 at 19:40
    
DANGER: The documentation says "never run pacman -Sy" (source: wiki.archlinux.org/index.php/…) – blippy May 3 at 14:34
    
@blippy That document didn't exist when this answer was written, it's earliest revision is some monhs later. Furthermore, the statement to which you refer was not added to the document until (Oct 23 2015)[wiki.archlinux.org/…) over 4 years later. Rather than being so melodramatic you should have just edited the answer and referenced the document as the reason for your change request Also note that even now the man page makes no such warnings. – Iain May 3 at 17:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.