Re: a simple script for restoring downloaded debs

2014-07-22 Thread songbird
Jörg-Volker Peetz wrote: > songbird wrote on 07/19/2014 16:23: >> Jörg-Volker Peetz wrote: > >>> Why not copy all files back and order something like "apt-get autoclean" to >>> get >>> rid of the older packages? >> >> it's a rather huge archive (i think about 18000 >> debs), but yes that would

Re: a simple script for restoring downloaded debs

2014-07-21 Thread songbird
Curt wrote: >Chris Bannister wrote: >> >> Are you aware of snapshot.debian.org? Save yourself time and anxiety. :) yes aware. no anxiety. > I believe he wants to keep things local due to a slow and/or problematic > internet connection. right. songbird -- To UNSUBSCRIBE, email to d

Re: a simple script for restoring downloaded debs

2014-07-20 Thread Curt
On 2014-07-20, Chris Bannister wrote: > > Are you aware of snapshot.debian.org? Save yourself time and anxiety. :) > I believe he wants to keep things local due to a slow and/or problematic internet connection. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject o

Re: a simple script for restoring downloaded debs

2014-07-20 Thread Chris Bannister
On Sat, Jul 19, 2014 at 10:23:15AM -0400, songbird wrote: > >songbird wrote: > > >> the other night i accidentally deleted the debs i > >> normally keep in the /var/cache/apt/archives directory > >> and while i do keep a backup of them in another > >> directory it is along with all the previous

Re: a simple script for restoring downloaded debs

2014-07-19 Thread Jörg-Volker Peetz
songbird wrote on 07/19/2014 16:23: > Jörg-Volker Peetz wrote: >> Why not copy all files back and order something like "apt-get autoclean" to >> get >> rid of the older packages? > > it's a rather huge archive (i think about 18000 > debs), but yes that would be another way of doing > it. i t

Re: a simple script for restoring downloaded debs

2014-07-19 Thread songbird
Andrei POPESCU wrote: >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 >> >=3D2E..=3D20 >> >> so here is round 1 of the script (which gets 90% of >> >> the packages

Re: a simple script for restoring downloaded debs

2014-07-19 Thread songbird
Jörg-Volker Peetz wrote: >songbird wrote: >> the other night i accidentally deleted the debs i >> normally keep in the /var/cache/apt/archives directory >> and while i do keep a backup of them in another >> directory it is along with all the previous versions >> too, so it isn't as easy as just

Re: a simple script for restoring downloaded debs

2014-07-19 Thread Jörg-Volker Peetz
songbird wrote on 07/18/2014 06:02: > the other night i accidentally deleted the debs i > normally keep in the /var/cache/apt/archives directory > and while i do keep a backup of them in another > directory it is along with all the previous versions > too, so it isn't as easy as just copying them

Re: a simple script for restoring downloaded debs

2014-07-18 Thread Andrei POPESCU
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 f

Re: a simple script for restoring downloaded debs

2014-07-18 Thread songbird
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/jessi

Re: a simple script for restoring downloaded debs

2014-07-18 Thread Andrei POPESCU
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).

Re: a simple script for restoring downloaded debs

2014-07-17 Thread songbird
songbird wrote: ... and the next version, which gets me down to 61 missing files. it is getting late so i'll have to take another look at this again later... = #!/bin/sh # # debarch="/archives/debian/jessie" dest="/var/cache/apt/archives" pkglist=`dpkg -l | egrep '^ii ' | cut --de

Re: a simple script for restoring downloaded debs

2014-07-17 Thread songbird
songbird wrote: ok, figured the four that are missing and generating null file names are local or obsolete packages that i have installed... that i can work around. new version of script (with some simple changes to make things go faster and to make it more flexible for other uses): = #