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

Re: Download debs of installed packages



Rage Callao wrote:
> How do I download the .debs of packages already installed in my system
> without having to reinstall them first via apt?
> 
> The command I'm using right now is:
> 
> apt-get --yes --reinstall install `cat package_list.txt`
> 
> where package_list.txt contains the package names per line.

Use aptitude to download the .deb file to the current directory.

  aptitude download $(<package_list.txt)

       download
              Downloads the .deb file for the given package to the
              current directory.

              By default, the version which would be installed with
              "aptitude install" is downloaded. You can select a
              particular version of a package by appending =<version>
              to the package name; you can select the version from a
              particular archive by appending /<archive> to the
              package name.

Bob



Reply to: