[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get -d is cool, but now to install them



On Tue, 2003-07-29 at 22:07, Dan Jacobson wrote:
> Alas, after a lot of apt-get -d's during the previous connection, the
> only way to use apt-get (not dpkg) to then install them seems to be:
> set -- `find /var/cache/apt/archives -name \*.deb -cmin -60 -print|
> sed 's@.*/@@;s/_.*//'`; apt-get install $@

There's a *really* handy package in sarge/sid called apt-show-versions.

So, you can do:
# aptitude update
# aptitude -d upgrade
# for v in \
     `apt-show-versions | sort |grep upgradeable|cut -d \/ -f 1`;
do
    echo '#=======================================';
    echo '#';
    echo '#==    '$v;
    echo '#';
    echo aptitude install $v ;
done 

-- 
+-----------------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net             |
| Jefferson, LA  USA                                              |
|                                                                 |
| "I'm not a vegetarian because I love animals, I'm a vegetarian  |
|  because I hate vegetables!"                                    |
|    unknown                                                      |
+-----------------------------------------------------------------+




Reply to: