Re: [Hampshire] Dumb dpkg/aptitude question

Top Page

Reply to this message
Author: Simon Huggins
Date:  
To: hampshire
Subject: Re: [Hampshire] Dumb dpkg/aptitude question
On Fri, Jun 06, 2008 at 12:50:16PM +0100, Richard Danter wrote:
> So what is the best way to install a local deb and resolve all the
> dependencies? Is there no command line tool to do both local and
> repository installation?


No, not that I know of.

You could however bung it in a directory on its own and then run
dpkg-scanpackages . /dev/null >Packages
gzip <Packages >Packages.gz

And then add a line to your sources.list like:
deb file:///home/youruser/somedirectory ./

Then run your aptitude or apt-get install somepackage=version
where version is the exact version of the .deb you've been given.

It's a bit hacky but it should work (untested too but should give you
the idea).

-- 
----------(    "Cerulean is a gentle breeze..." - Pusher     )----------
Simon ----(                                                  )---- Nomis
                             Htag.pl 0.0.24