You are not logged in.

#1 2006-05-07 02:46:34

cyt
Member
From: Taipei, Taiwan
Registered: 2006-03-22
Posts: 18

How to find upgradable packages in the system?

After each `pacman -Sy' synchronization, is there a easy way to find out what packages in the system are upgradable?

Offline

#2 2006-05-07 03:16:14

kill
Member
Registered: 2004-09-30
Posts: 126

Re: How to find upgradable packages in the system?

pacman -Su. To make it one less step, pacman -Syu will sync then check to see if anything needs updating. It will prompt you if you would like the necessary packages updated.

Offline

#3 2006-05-07 03:20:56

barebones
Member
Registered: 2006-04-30
Posts: 235

Re: How to find upgradable packages in the system?

Doing a

pacman -Syu

will sync up with the repositories and then upgrade all the packages on your computer that need upgrading. It will display all the packages that need upgrading and ask you if you want to upgrade them, so you can exit without upgrading if you change your mind.

Be sure to check out the pacman wiki and the wiki and forums if your unsure about programs in the future.

Edit: wow, beat me to the punch

Offline

#4 2006-05-07 04:15:09

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: How to find upgradable packages in the system?

If you would like an easier way, there has been a feature request for something like a <code>--pretend</code> option for pacman.  There's a thread about it here: pacman --pretend or something similiar?.  Feel free to add a comment with your opinion...the link to the flyspray report is in that thread as well.  I really hope it will get implemented in a future release...

Offline

#5 2006-05-07 07:17:45

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: How to find upgradable packages in the system?

It is implemented currently.

pacman -Syu
# push n when it asks to install

Offline

#6 2006-05-07 12:01:26

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to find upgradable packages in the system?

Cam wrote:

It is implemented currently.

pacman -Syu
# push n when it asks to install

Or a more automatic way:

yes n|pacman -Syu; echo -e \n\n

(the echo part is not necesarry, just to add a couple of extra lines after the pacman output)

Offline

#7 2006-05-07 16:03:39

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: How to find upgradable packages in the system?

Well, I don't want to rehash the argument here...I understand there are ways to do it, but nothing simple, safe, and user-friendly.  The reasons for not just doing <code>pacman -Syu</code> and hitting '<code>n</code>' are laid out in the other thread.  Basically it would be nice to have more informative output that is able to be run by a non-priviledged user with no risk of accidentally upgrading the system.  There are definitely two differing opinions on the topic...

Offline

Board footer

Powered by FluxBB