Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to install packages store on your HD with apt-get, like a "apt-get install ./package.deb ? If not how to handle the dependencies in a very very easy way.

share|improve this question

2 Answers

up vote 13 down vote accepted

usually i do dpkg -i it'll fail saying it needs dependancies. -- but when you then do an apt-get update it'll say at the end something like "dependacies are ready to install" i think it then advises to use apt-get install -f or --auto something, i forget (im on a rpm distro at the moment).

Once thats done, i use the dpkg -i again.

Worked fine for me last few years.

edit: looking a bit further, apparently a tool called "gdebi" can do this as "gdebi [deb file]"

share|improve this answer
Thanks i did the same by "error" dpkg then apt-get install -f and it worked. – Louis Oct 7 '10 at 8:22
I would really edit this answer to be more clear like @Akrikos. – Adam Mar 28 at 17:12

Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:

dpkg -i /path/to/filename.deb

If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run

apt-get -fy install

This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).

I found it interesting that if you leave off the -fy when you run apt-get install, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

share|improve this answer
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies? – Berry Tsakala Mar 4 at 13:33
1  
I'm sorry, but I don't know. I'd suggest asking that as another top level question. – Akrikos Mar 12 at 18:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.