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

Re: a simple script for restoring downloaded debs

On Vi, 18 iul 14, 00:02:43, songbird wrote:
>   the other night i accidentally deleted the debs i
> normally keep in the /var/cache/apt/archives directory
>   so here is round 1 of the script (which gets 90% of
> the packages back for me from my backup archive at
> /myarchive/debian/jessie). 

A few suggestions:

- to find packages you might want to use dpkg-query instead of parsing 
  the output of 'dpkg -l'
- to download the .deb if not available in your backup you could use 
  something like 'aptitude reinstall --download-only'

Kind regards,
Offtopic discussions among Debian users and developers:

Attachment: signature.asc
Description: Digital signature

Reply to: