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

Re: Using apt

On Thursday 12 July 2001 19:20, Jamie Wood wrote:
> > you have to make the directory structure (e.g.
> > dist/potato/whatever..)
> Hi - Thanks for your reply - but do I need to create a Packages.gz
> file that seems implicit in the search? Is so how? If not thanks!
> I'll give it a try.
> Cheers
> Jamie

The sloppy but simple way of doing this is:

(1)  su root
(2) mkdir /foo [make sure /foo is set-up with proper read
(3) cp *.deb /foo [or cp -auv deb-hoard-directory /foo]
(4) cd /foo
(5) dpkg-scanpackages . /dev/null > Package
(6)  Add the following line to the top of your /etc/apt/sources.list 
[to make sure it gets read before any other source archive.]

deb file:/foo .

7) apt-get update [or whatever the dselect equivalent]
8) you're OK for installation

Now unless you've really downloaded all the packages you want and 
their dependencies, apt-get is likely to complain about missing 
.debs. If that is the case, list down the said .debs (or better, 
perform some bash gymnastics on the error message), go back to the 
office, download, drive back home and repeat from step 3.

Reply to: