Re: Check whether an update for a particular package is available without upgrading
Hi Andrei,
Thanks for the extra commands. Unfortunately, some don't work on my
Wheezy system, are you using a more recent version of aptitude or
apt-get perhaps?
Here is some output:
aptitude search '?upgradeable'
E: Unknown term type: "upgradeable".
apt-get policy debian-reference-en
E: Invalid operation policy
On the other hand, apt-cache policy succeeds whereas apt-get policy
fails, again, probably a version difference.
apt-cache policy debian-reference-en
debian-reference-en:
Installed: 2.50
Candidate: 2.50
Version table:
*** 2.50 0
500 http://ftp.us.debian.org/debian/ wheezy/main i386 Packages
100 /var/lib/dpkg/status
If you have any insight into why aptitude search '?upgradeable' fails
on Wheezy, i'd be interested, it looks like a very handy command to
get a complete listing vs. for only one package.
======= Keith
On Sun, Oct 26, 2014 at 4:01 AM, Andrei POPESCU
<andreimpopescu@gmail.com> wrote:
> 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
Reply to: