On Thursday 06 July 2006 13:23, Stephen R Laniel wrote: > On Thu, Jul 06, 2006 at 01:18:45PM -0400, Kamaraju Kusumanchi wrote: > > Nope. apt-get upgrade or dist-upgrade wants to upgrade a slew of other > > packages besides what I want. I dont want to upgrade the entire system. I > > just want to upgrade privoxy and its dependencies. > > 1) Install apt-rdepends.
This is what I need. Thanks. > 3) Use this shell command to munge that list into a list of > unique package names: > apt-rdepends privoxy |grep Depends |sed 's/^\s\+Depends: //' |sed > 's/([^)]\+)$//' |sort |uniq > > I presume that apt-rdepends also outputs some optional > dependencies, or multiple packages that satisfy the same > dependency (like www-browser). The packages like www-browser are not a problem for me at present. I modified your script a little bit and settled onto $apt-rdepends privoxy 2>&1 |grep Depends |sed 's/^\s\+Depends: //' | sed 's/^\s\+PreDepends: //' |sed 's/([^)]\+)$//' |sort |uniq | tr '\n' ' ' The last tr is useful so that I can do sudo apt-get install `above command here` Other wise I do not know how to pass the result to apt-get without any fancy scripts. Any other ideas are also welcome. thanks raju -- This email account uses challenge-response system. Contact me only if you are comfortable with it. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]