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

Re: Apt-get help?



hacker wrote:

On Apr 7, 2005 10:26 PM, Wulfy <wulfmann@tiscali.co.uk> wrote:
Is there a way to use the packages I've already downloaded?  I really
don't want another 43 hours of downloads....


'apt-get update' will update your sources lists.  If the old packages
from your old /var/cache are still the current available versions,
then they should not be overwritten when you go to install them.  Most
likely, your old /var/cache is already outdated (or some are) and you
will eventually need to update them again anyway.

But, if you don't want to download the latest and just want to use
those you have, then you can use apt-move ('apt-get install apt-move')
to move them into a local repository, which you can add to your
sources list.  See the man page for details.

If you don't want to use apt-move, then there is an easy way to make a
local package repository using 'dpkg-scanpackages' (see the man page).

1. 'cd' to the directory with your packages.
2. 'dpkg-scanpackages . /dev/null | gzip > Packages.gz'
3. add this directory to your sources.list with the file url, for example:
   'deb file:/path/to/archive ./'
4. 'apt-get update' with your dialup off line
5. 'apt-get -s upgrade' to test out what will be upgraded.

Thanks, Hacker.

I'll try that...  :)

--
Blessings

Wulfmann

Wulf Credo:
Respect the elders. Teach the young. Co-operate with the pack. Play when you can. Hunt when you must. Rest in between.
Share your affections. Voice your opinion. Leave your Mark.



Reply to: