LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-29-2008, 07:52 PM   #1
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
locating packages held with "aptitude hold <packagename>"


I have sid running on a machine and listbugs warned of a couple issues in a recent update.. one of which would break aptitude if I let it go through.

I used "aptitude hold <packagename>" to block those packages from upgrading at this time.

My actual question is, is there a simple command to show all packages that have been held ? if there is I haven't found it.

aptitude search ~i will show all installed packages

I was thinking there might be something similar to show held packages.

in the mean time I'm doing aptitude search ~i | grep ih which did locate my held packages (and a couple others) I was just curious if there was a cleaner method that I am not aware of.

Thanks for your consideration.
 
Old 11-30-2008, 05:05 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Try with: aptitude search ~i|grep ^ih
 
Old 11-30-2008, 06:01 AM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Or just use aptitude itself:
Code:
aptitude search ~ahold
The search patterns available on the command line are extremely powerful.
 
Old 12-01-2008, 09:56 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249

Original Poster
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Telemachos View Post
Or just use aptitude itself:
Code:
aptitude search ~ahold
The search patterns available on the command line are extremely powerful.
That's exactly what I was looking for. I knew it was probably out there but I was missing it somewhere along the line.

OK, I now see the link from the "Using Aptitude from the command line" section to the "Search Patterns" section.. I'll mark this one up to selective blindness/stupidity.(you make the call)

Thanks much !!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aptitude giving error after "apt-get update" ciden Linux - Software 6 03-22-2008 03:53 AM
Aptitude -- Packages being held back snuffy115 Debian 2 02-19-2007 12:18 AM
LXer: Xandros to hold "installfest" at LinuxWorld Aug. 17 LXer Syndicated Linux News 0 08-17-2006 12:33 PM
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-23-2006 11:35 PM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration