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

Re: Help with apt



In foo.debian-user, you wrote:
> Quoting Mitch Blevins(mblevin@mindspring.com):
> > In foo.debian-user, you wrote:
> > > Not so much dselect, but dpkg yes.  I have a dialup connection and
> > > sometimes I download a package over more than one dialup session, save it
> > > in a directory and install it with dpkg.  
> > > 
> > > I have tried apt, but could not get it to install a package from a
> > > directory on my hard disk - which is frustrating.  It seems to me apt is
> > > looking for the same directory structure that the debian mirrors have and
> > > I am not going to mirror the whole structure on my hard disk.
> > 
> > apt will assume a Debian archive structure unless you end your sources.list
> > line with a directory separater.  For example, if your deb files are in
> > /home/jhspies/debian/mydebs/*, you would need to following line.
> > 
> > deb file:/home/jhspies/debian mydebs/
> > 
> 
> Mitch
> 
>  Don't you need a Packages file in that dir for that to work?

Ooops.  You're right.
Create a Packages.gz file in the same directory as the debs using the
dpkg-scanpackages command.  Something like this should work...

[prompt]$ cd /home/jhspies/debian/mydebs
[prompt]$ dpkg-scanpackages . /dev/null |gzip -c > Packages.gz

Thanks,
-Mitch


Reply to: