[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Check whether an update for a particular package is available without upgrading



On Sb, 25 oct 14, 14:59:28, Keith Christian wrote:
> 
> Have searched the WWW and man pages without finding anything like "dry
> run" or "show possible upgrades" specifically for aptitude.

    aptitude search '?upgradeable'

The full aptitude documentation is in the package aptitude-doc-en.

If you only want information about a particular package you can use one of

$ aptitude versions ^cron$
Package cron:
p A 3.0pl1-124                                    stable                    500 
p A 3.0pl1-124.2                                  testing                   500 
i A 3.0pl1-126                                                              100 
p A 3.0pl1-127                                    unstable                  500 

(aptitude's 'versions' always treats the package name as a pattern, so you have
to be a bit more specific if you get too many hits)

$ apt-get policy cron

cron:
  Installed: 3.0pl1-126
  Candidate: 3.0pl1-127
  Version table:
     3.0pl1-127 0
        500 http://http.debian.net/debian/ sid/main i386 Packages
 *** 3.0pl1-126 0
        100 /var/lib/dpkg/status
     3.0pl1-124.2 0
        500 http://http.debian.net/debian/ jessie/main i386 Packages
     3.0pl1-124 0
        500 http://http.debian.net/debian/ wheezy/main i386 Packages


$ apt show cron
Listing... Done
cron/unstable 3.0pl1-127 i386 [upgradable from: 3.0pl1-126]
N: There are 3 additional versions. Please use the '-a' switch to see them.

(the 'apt' command is only available as of Jessie)

> Previously I've seen recommendations to use aptitude or apt-get for
> updates/upgrades but not mix them due to creating inconsistencies in
> the package file listings, or something.  (Maybe this isn't an issue
> in 2014?)

Shouldn't be. If you find any please do file a bug.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: