[vox-tech] debian list/install all packages from repository?

Ken Bloom kbloom at gmail.com
Tue Jun 20 16:42:33 PDT 2006


On Tuesday 20 June 2006 17:52, Gabriel G. Rosa wrote:
> Hey all,
>
> Is there an easy way to install all packages that a debian repository
> offers, even if you don't know all the packages names?
>
> (pulling dependencies from other sources, if necessary)
>
> thanks,
> -Gabe

I assume you want to do this on a small repository.

The packages files live in /var/lib/apt/lists, so for example, you would 
run as follows. The first command schedules the packages to be 
installed, and the second command actually installs them.

# awk '/^Package:/{print 
$2}' /var/lib/apt/lists/ftp.nerim.net_debian-marillat_dists_sid_main_binary-i386_Packages | 
xargs aptitude --schedule-only install 
# aptitude install

--Ken Bloom

-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://localhost.localdomain/pipermail/vox-tech/attachments/20060620/69dc0aa3/attachment.pgp


More information about the vox-tech mailing list