Re: aptitude + dpkg



On Sun, Apr 29, 2007 at 12:26:38AM +0100, somethin2cool <somethin2cool@xxxxxxxxx> was heard to say:
Given that aptitude is awesome and that all the stuff I want is missing
from all the repositories, is there anyway for me to use .deb files and
dpkg in conjunction with aptitude. I'm sure they have the dependencies
listed inside them somewhere, and it would be brilliant. I'd settle for
apt of course.

Hi,

If you want to use .deb files with apt tools, your best bet is to
build a local repository. Stick them in a directory, chdir to that
directory, and run "apt-ftparchive packages . > Packages". Then put the line
"deb file:///path/to/debs ./" in your sources.list and run
"aptitude update".

For instance, to put them in /home/somethin2cool/packages, you'd do

$ cd /home/something2cool/packages
$ cp (...)/*.deb .
$ apt-ftparchive packages . > Packages
$ echo "deb file:///home/something2cool/packages ./" >> /etc/apt/sources.list
$ aptitude update

If you don't want to do that, your second-best option is to install a
.deb by hand, then see if apt(itude) can resolve its dependencies from
your apt sources (run, e.g., "aptitude install -f" to try and fix the
dependencies of currently installed debs). If it can't, you might need
to install some more dependencies by hand.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: aptitude + dpkg
    ... is there anyway for me to use .deb files and ... Do you mean that you have a deb file that is not part of a repository ... won't know about dependencies until during the install if debconf ... you can use aptitude ...
    (Debian-User)
  • aptitude + dpkg
    ... Given that aptitude is awesome and that all the stuff I want is missing from all the repositories, is there anyway for me to use .deb files and dpkg in conjunction with aptitude. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Gnome 2.10 going in to etch today
    ... I think the problem here comes from the way that aptitude marks things ... all it's dependencies that were automatically installed are ... Therefore if you install g-d-e and it pulls in everything for your GNOME ... you think about it) is to mark those packages that you use as MANUALLY ...
    (Debian-User)
  • Cleaning with aptitude
    ... removing a hand-installed packages, the non-needed dependencies would be ... A feature the Gentoo packaging system has and that I miss since ... is it possible to run aptitude tilling to remove those unneeded ...
    (Ubuntu)
  • aptitude and dependency handling
    ... I'm running a woody system with backports of Gnome2 and OpenOffice. ... And I noticed that Aptitude has at times a strange way of handling ... When browsing the packages, I regularly find unmet dependencies. ...
    (Debian-User)