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

Re: Using tar saving Disk-space [was: apt-get offline]



On Wed, 30 May 2001, Joerg Johannes wrote:

>Hi list
>
>Now that I can transfer my downloaded .debs in a .tar file, I wonder if
>I could create this .tar file saving disk space, e.g. in the following
>way
>
><pseudo-code>
>create a tar file (touch packages.tar?)

unnecessary, and in fact will break the script...

>for *.deb in this directory

foreach foo (./*.deb)

>   1.) add it to the tar file

tar -u $foo -f packages.tar

>   2.) rm this .deb

rm $foo

>end

end

></pseudo-code>
>
>Is this possible for (non-GNU)-tar?

I think that I made it basic enough to be portable...

>How would this look for the csh?

That's what I was writing it for (actually, tcsh, but it should be
backwards compatible...)

>Even better: Could this be included in the wget-script?

?!  you have a script already that you want to add this stuff to?  That'd
be easier by far, because you'd only have to select once and not select,
then select on *.deb.

>thanks
>
>joerg
>

-- 
There is an old saying that if a million monkeys typed on a million
keyboards for a million years, eventually all the works of Shakespeare
would be produced.   Now, thanks to Usenet, we know this is not true.

Who is John Galt?  galt@inconnu.isu.edu, that's who!





Reply to: