Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a directory with all Dependencies in .deb format.

But there are lots of them. I need only those that i need for gimp.

biggenius@hacbook:~/Desktop/rocks/packages$ dpkg-deb -I gimp_2.6.12-1ubuntu1_i386.deb 
 new debian package, version 2.0.
 size 4722192 bytes: control archive= 7927 bytes.
    1894 bytes,    27 lines      control              
   15660 bytes,   219 lines      md5sums              
     353 bytes,    14 lines   *  postinst             #!/bin/sh
     160 bytes,     5 lines   *  postrm               #!/bin/sh
     331 bytes,    11 lines   *  preinst              #!/bin/sh
     245 bytes,    14 lines   *  prerm                #!/bin/sh
 Package: gimp
 Version: 2.6.12-1ubuntu1
 Architecture: i386
 Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
 Installed-Size: 12814
 Depends: libgimp2.0 (>= 2.6.12), libgimp2.0 (<= 2.6.12-z), gimp-data (>= 2.6.12), gimp-data (<= 2.6.12-z), python-gtk2 (>= 2.8.0), libaa1 (>= 1.4p5), libbabl-0.0-0, libc6 (>= 2.15), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.88), libexif12, libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgegl-0.0-0 (>= 0.0.22), libglib2.0-0 (>= 2.31.2), libgtk2.0-0 (>= 2.24.0), libjpeg8 (>= 8c), liblcms1 (>= 1.15-1), libmng1 (>= 1.0.10), libpango1.0-0 (>= 1.18.0), libpng12-0 (>= 1.2.13-4), libpoppler-glib8 (>= 0.18), librsvg2-2 (>= 2.14.4), libtiff4, libwebkitgtk-1.0-0 (>= 1.3.10), libwmf0.2-7 (>=, libx11-6, libxext6, libxfixes3, libxmu6, libxpm4, zlib1g (>= 1:1.1.4), python (>= 2.7.1-0ubuntu2), python2.7
 Recommends: ghostscript
 Suggests: gimp-help-en | gimp-help, gimp-data-extras, gvfs-backends, libasound2
 Provides: gimp-helpbrowser, gimp-python
 Section: graphics
 Priority: optional
 Homepage: http://www.gimp.org
 Description: The GNU Image Manipulation Program
  GIMP is an advanced picture editor. You can use it to edit, enhance,
  and retouch photos and scans, create drawings, and make your own
  images. Lots of tools are available; you can sharpen and resize photos,
  and remove dust and red-eyes, for example.
  It has a large collection of professional-level editing tools and
  filters, similar to the ones you might find in PhotoShop. Numerous
  fine-control settings and features like layers, paths, masks, and
  scripting give you total control over your images.
  Many image file formats are supported, including JPEG, PhotoShop
  (.psd), and Paint Shop Pro (.psp) files. It can also be used to scan
  and print photos.
 Original-Maintainer: Ari Pollak <ari@debian.org>

How can i install only these decencies from Directory.


share|improve this question

You can aptitude -s install gimp to have aptitude resolve the dependencies for you and then use that list to find out which packages you need to install.

You can also setup a local repository with all your deb-files using reprepro, temporarily put your repository into /etc/apt/sources.list as the only repository and then simply aptitude install gimp.

The most sensible way however would be to just aptitude install gimp ... or don't you have an internet connection?

share|improve this answer
I dont have internet on that PC. I have setup a local repos in there. How can i force apt to install thoes depencies from my local repo instead of repo from Internet? – BigSack Aug 12 '12 at 5:37
@BigGenius you should not crosspost – Ulrich Dangel Aug 12 '12 at 5:45
Sorry, i will not do it again. – BigSack Aug 12 '12 at 5:48
@BigGenius jftr some discussion about crossposting – Ulrich Dangel Aug 12 '12 at 5:53

You have to create a repository based on the packages. You can easily do it with dpkg-scanpackages, e.g:

dpkg-scanpackages . /dev/null | gzip > Packages.gz
echo "deb file:/path/to/directory ./" > /etc/apt/sources.list.d/local-mirror.list
apt-get update

This will allow you to use the files from your local mirror. For a more verbose example have a look at the Ubuntu personal repository manual.

share|improve this answer
I did this, but still ubuntu install them from remote repos, instead of local repos. How do i force it to install these depencies from my repo? – BigSack Aug 12 '12 at 5:48
@BigGenius remove the remote repository from your sources.list – Ulrich Dangel Aug 12 '12 at 5:50
is this only way out? Can i force it instead? – BigSack Aug 12 '12 at 10:58
@BigGenius You can use apt pinning as well. Another solution is to place the file lines before any other line, e.g. in /etc/apt/sources.list or rename the file in /etc/apt/sources.list.d/ to 000-local.list – Ulrich Dangel Aug 12 '12 at 14:16

Your Answer


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.