[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, 10:49:13, songbird wrote:
> Andrei POPESCU wrote:
> >songbird wrote:
> >>   the other night i accidentally deleted the debs i
> >> normally keep in the /var/cache/apt/archives directory
> >=2E..=20
> >>   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).=20
> >
> > A few suggestions:
> >
> > - to find packages you might want to use dpkg-query instead of parsing=20
> >   the output of 'dpkg -l'
> 
>   hmm, looked at:
> 
> me@ant(7)~$ dpkg-query -l | egrep "^ii  " | wc -l
> 2377

I was rather thinking about --showformat ...

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: