Two Apt (Package) Questions

Nuno Carvalho rekconk at gmail.com
Fri Oct 14 20:05:52 UTC 2005



Carthik Sharma wrote:
> 
> 
> On 10/14/05, *Nuno Carvalho* <rekconk at gmail.com 
> <mailto:rekconk at gmail.com>> wrote:
> 
> 
> 
>     Carthik Sharma wrote:
>      > On 10/14/05, *Nuno Carvalho* <rekconk at gmail.com
>     <mailto:rekconk at gmail.com>
>      > <mailto:rekconk at gmail.com <mailto:rekconk at gmail.com>>> wrote:
>      >
>      >
>      >
>      >     Carthik Sharma wrote:
>      >      > Hi all,
>      >      >
>      >      > I am in the process of getting ready to upgrade to Breezy,
>     and have a
>      >      > couple of questions:
>      >      >
>      >      > 1) What is the command to download (only download) all
>     .debs of all
>      >      > installed packages?
>      >      > The idea is to have a copy of all the .debs in a cdrom, since
>      >     this would
>      >      > mean I have all those that I want. I had run apt-get autoclean
>      >     once so
>      >      > my apt cache is almost empty now.
>      >      >
>      >     just add "-d" to your apt-get call
>      >
>      >     eg: apt-get -d upgrade
>      >
>      >
>      > This will download the packages that need upgrades. I want to
>     download
>      > packages that are already installed,  and up-to-date ? (for archival)
>     my mistake:
> 
>     $ dpkg --get-selections  | cut -f 1 > packages.list
>     $ apt-get -d --reinstall --print-uris install `cat packages.list`
> 
> 
> Thanks!!! I am still having problem with the second step, where apt-get 
> complains that it cannot find some packages. I tried options -m, -f and 
> --ignore-missing, but it still complains and stops - any quick fixes??
This happens because you have packages that aren't installed but not purged.

try this:
$ dpkg -l | grep ^ii | cut -f 3 -d " " > packages.list
$ apt-get -d --reinstall --print-uris install `cat packages.list`

some packages will complain that cannot be reinstalled, that you to care 
by hand

Nuno
> 
> Thanks a lot, again,
> 
> Carthik.
> 

-- 

Today's fortune:
If all the Chinese simultaneously jumped into the Pacific off a 10 foot 
platform erected 10 feet off their coast, it would cause a tidal wave 
that would destroy everything in this country west of Nebraska.




More information about the ubuntu-users mailing list