8

I am part of a small team that develop an intranet web app. We want to a method of easy installation, so we were thinking about how apt-get works, especially with installing dependencies.

Our app has many dependencies (PHP5, PostgreSQL, FOP etc) but we need control over who has access to the installation. With this in mind we started looking at building our own .deb file. It looks like I can define the dependencies in my control file but when we try to install the .deb file using dpkg, the dependencies are checked, fail and the installation stops.

What I did then was to run a apt-get -f install command to run the installation again with dependencies, but I don't want to do this.

So here's the question, is there a way that a .deb file can install the dependencies automatically, just like and apt-get install abc would?

Basically we want to make the installation as simple as possible, therefore we don't want the end user to be running any command that isn't absolutely necessary.

2
  • are the dependencies in your repositories you have selected/activated on the host? on a default installation only the main repository is activated, perhaps you will also need universe and restricted. (don't forget to reload the sources.)
    – Reivax
    Jan 28, 2011 at 9:26
  • Can you clarify this: Have you already written the debian file with the control and rules files? If you have done that, you know that in there you can specify required packages both to build and install your package. I suggest you put in the requirements. Then set up your own package server so the client can easily access your packages. If client is dedicated to installing via a deb server, then that's how you do it. It does not matter if client uses apt-get, aptitude, synaptic, or some other itnerface to the dpkg database. Am I misunderstanding your question?
    – pauljohn32
    Apr 22, 2017 at 4:34

2 Answers 2

7

Gdebi

gdebi installs a deb package and its dependencies. To use it run:

sudo gdebi package.deb

In newer versions of Ubuntu, this is not installed by default, so you will need to install it from the repositories.

See man gdebi for a full list of options.

gdebi is the command line equivalent to the graphical tool of the same name that used to be included by default in Ubuntu. The command for the graphical tool is gdebi-gtk and has similar functionality:

gdebi-gtk

0

Now, this is already handled by Software Center.

  1. Double-Click on any deb file will launch Software Center
  2. Press install and it will download dependencies

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .