Equivalent of yum check-update

NoOp glgxg at sbcglobal.net
Thu Dec 9 18:24:16 UTC 2010


On 12/09/2010 03:04 AM, Tom H wrote:
> On Thu, Dec 9, 2010 at 5:52 AM, Fajar Priyanto <fajarpri at arinet.org> wrote:
>> On Thu, Dec 9, 2010 at 5:57 PM, Tom H <tomh0665 at gmail.com> wrote:
>>> On Wed, Dec 8, 2010 at 9:56 PM, Fajar Priyanto <fajarpri at arinet.org> wrote:
>>>>
>>>> Is there any equivalent of yum check-update in ubuntu?
>>>
>>> aptitude update && aptitude search '?upgradable'
>>
>> Thanks Tom ^^
>> That did it.
> 
> You're welcome (you have to install aptitude if you installed Ubuntu
> 10.10 with a Live CD).
> 

You can also use 'apt-show-versions -u'. However 'apt-show-versions' is
not quite as effective as 'aptitude search '?upgradable'' as it doesn't
show updates for pinned packages, but aptitude search does[1].

$ sudo apt-get install apt-show-versions
$ sudo apt-get update && sudo apt-show versions -u

<http://manpages.ubuntu.com/manpages/maverick/en/man1/apt-show-versions.1p.html>

[1] I have udisks pinned:

$ sudo aptitude search '?upgradable'
i A udisks      - abstraction for enumerating block devices

$ sudo apt-show-versions -u
$





More information about the ubuntu-users mailing list