Q. I am a new Ubuntu Linux use. I need to install a package called package.deb. I know I can use Synaptic package management to install packages from CD or Internet. But I want to install this special .deb file. So how can I install package?
A. You need to use dpkg package manager from shell/command prompt. dpkg is a tool to install, build, remove and manage packages. dpkg itself is controlled entirely via command line parameters. For example -i use to install .deb file.
How do I install .deb file?
To install package called package.deb type the following command:
Go to directory where package.deb is kept. For example if it is in /tmp directory:
$ cd /tmp
Type the following command:
$ sudo dpkg -i package.deb
- Email FAQ to a friend
- Printable version
- Rss Feed
- Last Updated: 12-24-07

{ 13 comments… read them below or add one }
Thanks a bunch. I was searching for hours for that solution…
sudo dpkg -i package.deb
I had a directory of backed up .deb files that I had to restore.
Cheers,
Gama.
Thanks..been looking for it.
I just double clicked the .deb package and let ubuntu do it all itself. Nice one.
“Clicking on .deb file” is much better advice, thanks
thank you so much. now i know “dpkg -i file.deb” alone would not work. cheers!
for openoffcie.org 3.0 :
in the directory of DEBS:
sudo dpkg -i *deb
it will install all the packages.
thnx a bunch
Hey thanx a ton!……………I had backed up a lot of packages, and wanted to install them all at once!………….:)
Hi there.
Thanks for the tips ’bout .deb install.
Next (a bit out of focus, but nevertheless):
I am totally new to Ubuntu. Installed it because of a disk failure on my laptop. When wanting to install windows for boot on my spare USB-drive, Windows (bulls*%& MS) couldn’t do it (blue screen). Frustrated I booted the Ubuntu 8.0.4 CD-ROM I had downloaded a while ago. Ubuntu found the disk like nothing! Halleluya!!!
So now I am able to still use my good old laptop! And it is MUCH more faster than under Windows.
Finding a new HD to a 5 years old Dell Inspiron isn’t easy. I might as well retired my current Inspiron 500m as a kinda homebrewed webserver and buy one of those snaksy new minis, like EEEPC or Dell Inspiron Mini 9, but INCLUDED with Ubuntu of course. Good bye Windows.
BTW:I have never before found such a happy bunch of contributors/helpers/goodminded persons as I have in the Linux-world! A general thanks to all’ye for yer help during the transition.
BTW2: My first “PC” was a Metric ABC80 w/16Kb RAM (bought in 1978). OMG the world has changed since then :-)
From now on: straight into Ubuntu-heaven!
Cheers mates!
Kindly sunshine from
Mr. Eivind Trana
Old IT-guy (30 years experience) from Norway living retired cool days in Lapu-Lapu, The Philippines.
wooo… thx a lot. i’ve been wondering how do i install DEB packages. i want to install this WINE packages but all i see is to connect to the internet first. But i can’t go online because i dont know how to install my wireless card. so, i juz download this DEB manually and install it.
thank you very much.
thanks. it’s a very useful info.
Thanks a lot! Very useful!
Sometimes installing the deb file through the GUI won’t work. If you have a i386 package and you’re running amd64 you need to use dpkg like so:
“dpkg -i –force-architecture /path/to/file.deb”
Thanks a lot!!