Re: Check whether an update for a particular package is available without upgrading
On Du, 26 oct 14, 14:54:45, Keith Christian wrote: 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? No, just a few typos, sorry. Here is some output: aptitude search '?upgradeable' E: Unknown term type: upgradeable. Correct: aptitude search '?upgradable' apt-get policy debian-reference-en E: Invalid operation policy That's 'apt-cache' of course, as you found out. 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 signature.asc Description: Digital signature
Re: Check whether an update for a particular package is available without upgrading
And using aptitude search '?upgradable' (sans the middle 'e') it works great. Thank you. Keith On Mon, Oct 27, 2014 at 2:46 PM, Andrei POPESCU andreimpope...@gmail.com wrote: On Du, 26 oct 14, 14:54:45, Keith Christian wrote: 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? No, just a few typos, sorry. Here is some output: aptitude search '?upgradeable' E: Unknown term type: upgradeable. Correct: aptitude search '?upgradable' apt-get policy debian-reference-en E: Invalid operation policy That's 'apt-cache' of course, as you found out. 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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/cafwoy7hja9jmbwybohs3da1m-+bamusnnmc5et3zqj3f7vj...@mail.gmail.com
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-124stable500 p A 3.0pl1-124.2 testing 500 i A 3.0pl1-126 100 p A 3.0pl1-127unstable 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 signature.asc Description: Digital signature
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 andreimpope...@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-124stable 500 p A 3.0pl1-124.2 testing 500 i A 3.0pl1-126 100 p A 3.0pl1-127unstable 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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAFWoy7Hp=w9E+ATPrTKKx6dpXz=OwVnrnGNLG=f=u2w5zep...@mail.gmail.com
Re: Check whether an update for a particular package is available without upgrading
On a Wheezy system, I have used aptitude exclusively for updates/upgrades, etc. Looking for a command line option to use with aptitude to check whether updates are available for a single arbitrary package, e.g. debian-reference-en for example. Have searched the WWW and man pages without finding anything like dry run or show possible upgrades specifically for aptitude. 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?) Again, want this for a single package, but suppose a list of all potential upgrades would be OK as long as it's a listing only and doesn't engage in an actual package upgrade. Thanks for any insight, explanation, methods, command line arguments, etc. You did already get an answer, using the -s argument. As long you only want the info for one package apt-cache policy [packagename] should work too. I couldn't find the according aptitude argument. I have heard too that mixing aptitude and apt-get is not recommended. But a) i never had problems in doing it and b) i think those problems don't exist anymore (or at least not as serious as they've been in the past). Not that i would see much use in switching between both all the time ... signature.asc Description: PGP signature
Re: Check whether an update for a particular package is available without upgrading
On Sat, 25 Oct 2014 14:59:28 -0600 Keith Christian keith1christ...@gmail.com wrote: On a Wheezy system, I have used aptitude exclusively for updates/upgrades, etc. Looking for a command line option to use with aptitude to check whether updates are available for a single arbitrary package, e.g. debian-reference-en for example. ~$ apt-get -s install yelp Reading package lists... Done Building dependency tree Reading state information... Done yelp is already the newest version. yelp set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 609 not upgraded. I think that's what you are looking for. The -s option is simulate. Brian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141025142835.43f46...@pebble.deldotd.com
Re: Check whether an update for a particular package is available without upgrading
Thanks, Brian, that's it! Works for aptitude too! On Sat, Oct 25, 2014 at 3:28 PM, bri...@aracnet.com wrote: On Sat, 25 Oct 2014 14:59:28 -0600 Keith Christian keith1christ...@gmail.com wrote: On a Wheezy system, I have used aptitude exclusively for updates/upgrades, etc. Looking for a command line option to use with aptitude to check whether updates are available for a single arbitrary package, e.g. debian-reference-en for example. ~$ apt-get -s install yelp Reading package lists... Done Building dependency tree Reading state information... Done yelp is already the newest version. yelp set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 609 not upgraded. I think that's what you are looking for. The -s option is simulate. Brian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAFWoy7F=1t2uA+=7FvKkcEQAJTRCPZVvgduB_RmCBZpN=ub...@mail.gmail.com