You are not logged in.

#1 2011-03-21 07:17:42

red-guy
Member
Registered: 2011-03-21
Posts: 13

[solved] basic pacman information

hi,
i was just wondering if pacman had a way to update the "upgradable packages" list, and is there a way to see the upgradable packages.
the only thing i found about pacman in the archwiki was -Syu but that seams to upgrade the packages when all i want is to know which packages can be upgraded
i come from debian where i used the aptitude package manager
aptitude update would update the packages list, aptitude search "~U" would list the packages that can be upgraded and dist-upgrade upgraded the packages (Sort of like -Syu)
so, is there any way to get similar outputs using pacman?

Last edited by red-guy (2011-03-21 07:40:16)

Offline

#2 2011-03-21 07:23:26

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

Re: [solved] basic pacman information


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-03-21 07:28:37

red-guy
Member
Registered: 2011-03-21
Posts: 13

Re: [solved] basic pacman information

thanks, so from the pacman man i get that -Sy is the equivalent of update and -u serves as the outdated package list, am i correct?

if i "pacman -u" i get operation not specified and if i -Sy -u it's the same as -Syu

but if i pacman -Q -u i get nothing, which seams to be what i'm looking for, can anyone confirm that this is the case?

Last edited by red-guy (2011-03-21 07:38:28)

Offline

#4 2011-03-21 07:37:47

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

Re: [solved] basic pacman information

The link I posted was to the Query flag: pacman -Qu will give you:

man pacman wrote:

-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.

S is the sync flag. -Sy syncs the database and Syu syncs & updates...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-03-21 07:39:51

red-guy
Member
Registered: 2011-03-21
Posts: 13

Re: [solved] basic pacman information

ok, thank you, it's just what i was looking for smile

Offline

Board footer

Powered by FluxBB