Copy .deb files from separate dir to /var/cache/apt/archives
Thilo Six
T.Six at gmx.de
Mon Oct 30 18:30:30 UTC 2006
Florian Diesch wrote the following on 29.10.2006 02:30:
> Thilo Six <T.Six at gmx.de> wrote:
>
>> OOzy Pal wrote the following on 28.10.2006 20:01:
>>> How can I copy a bunch of .deb files from multiple directories to
>>> /var/cache/apt/archives in one shot to avoid downloading again.
>> e.g. ones i copied the debs from the alternate cd to
>> /var/cache/apt/archives. I used:
>>
>> sudo cp -v /media/cdrom/pool/*/*/*/*deb /var/cache/apt/archives/
>
> if you don't want to care about the path depth:
> find /media/cdrom/pool -name \*.deb | sudo xargs -i cp -v {} /var/cache/apt/archives/
ok this is the ultra comfortable solution. ;)
*note it down*
thx for the tip
/me hasnĀ“t the knowledge for these kind of solutions, but hey mine also
works. *gg*
> Using zsh it's just
> sudo cp -v /media/cdrom/pool/**/*.deb /var/cache/apt/archives/
>
>
> Florian
bye Thilo
--
i am on Ubuntu 2.6 KDE
- some friend of mine
gpg key: Ox4A411E09
More information about the ubuntu-users
mailing list