How do I install a .deb file via the command line?


Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic.

Something along the lines of:

dpkg –> apt-get, aptitude –> Synaptic, Software Center

But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the dpkg command which is the base for all of them.

Since dpkg is the base, you can use it to install packaged directly from the command line.


sudo dpkg -i DEB_PACKAGE

For example if the package file is called askubuntu_2.0.deb then...

0 0

On many forums Ubuntu users still struggle to install .deb files manually. The .deb file is actually a package.

The packages which you want to install manually, have to be installed via the dpkg command (Debian Package Management System). Basically dpkg are some backend commands like apt-get and aptitude.

The easiest way to install a package of course is through the Graphical User Interface, through the Synaptic or Software Center. As an alternative you can install package by terminal commands like apt-get and aptitude that have a friendly approach to the backed dpkg. But still not limited to have a control on all packages, like which one needs to be updated, which one is broken, etc…

So, as you understand now, the dpkg is the base, and it allows you to install packages with no problems from the command line.

To Install a .deb File Package

You will have to open the terminal using the keyboard shortcut: Ctrl + Alt + T and type the following...

0 0
Since Kali is based on Debian, installing and managing software from the command-line is accomplished using apt-get and other components of Debian’s Advanced Packaging Tool (APT).

To install the Debian package manually with dependencies, Run below command,

sudo dpkg -i package.deb; sudo apt-get install -f

Why sudo apt-get install -f? When you install packages through APT, dependencies get resolved automatically and installed with package. As you are installing package manually, sudo apt-get install -f command will install dependencies if any. If you are sure that there is no dependencies of the package on other package or libraries, sudo dpkg -i package.deb would be enough.

You can install wine with below commands also,

sudo apt-get update; sudo apt-get install...

0 0
how to unpack a *.deb file on command line

location: - date: May 13, 2010
hi, I put command sudo dpkg - unpack file.deb server say need an action option help

how to unpack a *.deb file on server command line

location: - date: May 13, 2010
hi, friends, how to unpack a .deb file on server, I tried tar, but doesn't work

How to start Transmission via command line on a headless server?

location: - date: June 8, 2009
I am trying to start the transmission bittorent client from a command line on a headless server. I set up transmission (via the gui when I still had a monitor connected) to have the web interface enabled and successfully accessed transmission via the web. Now in headless mode, I have installed transmission-cli and started transmission-daemon. However, I can't access my box via the web interface. I can ssh in just fine. I've searched around on google and found plenty of things on...

0 0
May 13, 2010

I put command sudo dpkg - unpack file.deb

server say need an action option

Ubuntu :: Unpack A *.deb File On Server Command Line? Ubuntu Servers :: Executing PHP File Via Command Line Ubuntu Servers :: Command Line To Copy File To Root Directory Red Hat / Fedora :: Tar Command - Locating Package To Unpack? General :: Command Line Way To View A Line Of A File With Context? Ubuntu Servers :: XLS To PDF In Command Line (or PHP) ? Ubuntu Servers :: Get OpenPGP Key From The Command Line? Ubuntu Servers :: Does Server Have GUI Or Command Line Only? Ubuntu Servers :: Can't Get Back To Command Line Ubuntu :: Convert A .ods File To A .csv File Via Command Line? OpenSUSE :: .jar File Runs Fine In Command Line But Not From File System? General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line? Ubuntu Servers :: Execute .php Files From The Command-line? Ubuntu Servers :: Sending Main From The Command Line? Ubuntu Servers...
0 0

It is not possible to pass parameters when installing as .deb/.rpm file. Also, as the files are pre-packaged in the archive, it is not possible to change installation directory - what is provided as the default value for the project will always be used.

InstallBuilder does not provide support for user interaction that rpm/dpkg interfaces provide. However, you can set environment variables and access them in the installer - for example:

remote_hostname ${ENV(REMOTE_HOSTNAME)} 0 does_not_equal ${ENV(REMOTE_HOSTNAME)}

This will set InstallBuilder's remote_hostname variable if environment variable REMOTE_HOSTNAME is set. You can then install it using:

REMOTE_HOSTNAME= dpkg -i package.deb

However, it is not something that can be relied upon not to change in the future and can mainly be used as a...

0 0

About the AbiSource Packages for Ubuntu. Developer Ryan Pavlik maintains Ubuntu packages of AbiWord in a Personal Package Archive. To access them, add the appropriate .How do I install a .deb file via the command line?.I am trying to install chrome browser via command line. I tried this: $ apt-cache search chrome browser The results show that the proper term is “chrome-browser,” so .Installation on Ubuntu 12.04. RabbitMQ Debian package can be installed on Ubuntu 12.04 with the help of additional apt repositories, namely:.

Command Did Upgrade The Three Linux Packages That Were Previously Kept

How do I install a .deb file via the command line?.2011-05-19 Ubuntu is a double edged sword. It’s expanded the Linux user base, but in the process has “dumbed down” Linux. It’s the AOL of distributions..

Packages are manually installed via the dpkg command Debian Package Management System . dpkg is the backend to commands like . How To Install .deb Packages Without Ubuntu...

0 0

How do I install TeamViewer on my Ubuntu system?

To install TeamViewer on your Ubuntu system, follow these steps:

Download the TeamViewer full version under Open the teamviewer_linux.deb file with a double click. The TeamViewer installation package will open in the Ubuntu Software Center. Click on the Install button. The Authenticate dialog box will open. Enter the administrative password. Click on the Authenticate button. TeamViewer will be installed. The status within the Ubuntu Software Center changes to Installed. TeamViewer is installed on your Ubuntu system.

You can also install TeamViewer via command line. Please find further information in the "How do I install TeamViewer on my Linux distribution?" article.

Note: This instruction describes the installation of TeamViewer 9 on an Ubuntu 14.04 LTS (32-bit)...

0 0
0 0

There are two actions, they are dpkg-query and dpkg-deb.

Install a package

# sudo dpkg -i {package_name} # sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb

Remove a package

# sudo dpkg -r {package_name} # sudo dpkg -r vlc

Remove a package and its configuration files

# sudo dpkg -P {package_name} # sudo dpkg -P vlc

List all installed packages.

You can pipe the command to less (a pager) so you can more easily scroll the content:

# dpkg -l | less

Check if the package is installed or not

# dpkg -l {package_name} # dpkg -l vlc

Check if the package is installed or not, and if it is, launch it:

# dpkg -l | vlc

See whether a package is installed or not

And this will show the location where the package will be installed. Here -S (capital S) to search whether the package was installed or not.

# sudo dpkg -S {package_name} # sudo dpkg -S skype

Install a *.deb package from a specified location

0 0

Google Chrome isn't in the repositories - however, Chromium is.

Google Chrome is only available for 64-bit Linux. I've included directions for 64 below.

To install Google Chrome, run the following:

sudo apt-get install libxss1 libappindicator1 libindicator7 wget sudo dpkg -i google-chrome*.deb

If error messages pop up after running the command sudo dpkg -i google-chrome*.deb then run the command

sudo apt-get install -f

and then re-run the previous command. The error messages mentioned should include something similar to

google-chrome-stable depends on [lib-example]; however; Package [lib-example] is not installed.

This installs a needed library for Google Chrome, then downloads the latest version of Chrome to a temporary directory and installs it. Run google-chrome to start the browser.

During the installation a PPA is added to your system so that Google Chrome...

0 0

am a new Ubuntu Linux user. I need to install a package called package.deb. I know I can use Synaptic front-end package management tool to install packages from the CD or Internet. But, I would like to install a special .deb file. How can I install .deb package from the terminal using command line option in Ubuntu Linux or Debian Linux?

You need

to use the dpkg command

, which is a package manager from shell/command prompt for Debian and Ubuntu Linux. You can use this tool to install, build, remove and manage packages. dpkg itself is controlled entirely via command line parameters.


The syntax is as follows:


-i or --install : Install the package. -R or --recursive : Recursively installed all *.deb files found at specified directories and all of its sub-directories. /path/to/dir/name/with/lots/of/dot-deb-files/ must refer to a directory instead of package-name-here.deb file name.

How do I install .deb file?

0 0

There are two official HandBrake PPAs, ppa:stebbins/handbrake-releases and ppa:stebbins/handbrake-snapshots.

The former contains stable releases, which are updated about once a year. These releases tend to be rather out-dated when their end-of-life is approaching. The current stable version (0.9.8) was released on 2012-07-18.

The latter contains nightly builds, which are updated daily (or nightly, as it were). These are of course less stable, and undocumented to boot, but they are good software nonetheless. Additionally, as the stable release ages, the developers tend to start recommending users to try the nightly builds instead.

To add one of these to your sources, simply run:

sudo add-apt-repository ppa:stebbins/handbrake-releases


sudo add-apt-repository ppa:stebbins/handbrake-snapshots

depending on which you want. To install HandBrake, run:

sudo apt-get update sudo apt-get install handbrake-gtk

Alternatively, if you would prefer the...

0 0

I’ve written about using apt-get to get and install debian packages. However, a recent comment by a reader brought the fact that I hadn’t written anything on what to do with a .deb file that exists on your system already either by download or other media.

Using the apt-get application is the quickest way to find and install debian packages. The installation part is done by an application named dpkg. Dpkg doesn’t have to be used by apt-get, you can use it manually as well.

From the man dpkg command:

dpkg – a medium-level package manager for Debian

Whatever that means.

In keeping with GNU/Linux system security, only the superuser can use the dpkg application. Dpkg is a typical GNU/Linux application that is controlled by command-line switches. Possibly the most common use of dpkg is to install a local .deb file.

To install a .deb file, become root and use the command:

dpkg -i filename.deb

Dpkg can also be used to:

0 0

Ubuntu has a lot of GUI-based methods for installing applications, but they take some time to search and find. Since the keyboard is usually faster than the mouse, managing your software via the command-line can be a real time-saver.


Linux manages software through packages, individual units of software that contain user interfaces, modules, and libraries. Most applications link several co-dependent packages together, and still others allow you to choose which packages to install and which to leave out at your own discretion. This can get confusing, so there’s a package manager at your disposal to help

Each Linux distribution has its own package management system. For our own near and dear Ubuntu, it’s the Advanced Packaging Tool. It has a family of commands that allows you to add repositories; search for, install, and remove packages; and even simulate upgrades and such. The commands are fairly easy to remember and use, so you’ll be managing your...

0 0

Question: I have a *.deb file that I like to install on Red Hat. Is it possible to convert a *.deb to *.rpm package (and vice versa)?

Answer: You can use alien command to convert *.deb to *.rpm file. Also, if you have a *.rpm file that you want to install on a Debian or Ubuntu, you can convert the *.rpm to *.deb file using alien command as explained in this article.

1. Convert RPM to DEB

Install alien command on Debian / Ubuntu

Install alien command on Ubuntu as shown below.

# sudo apt-get install alien

Use alien command to convert rpm to deb file

The following example converts the linuxconf-devel rpm file to linuxconf-devel deb file. Once you generate the deb file, you can install it on Ubuntu or Debian.

# alien linuxconf-devel-1.16r10-2.i386.rpm linuxconf-devel_1.16r10-3_i386.deb generated

Install deb packages using the dpkg command — Debian: How to Install or Remove DEB Packages Using dpkg

2. Convert DEB to...

0 0

Question: I would like to know how to install, uninstall, verify deb packages on Debian. Can you explain me with an example?

Answer: Use dpkg to install and remove a deb package as explained below.

On Debian, dpkg (Debian package system) allows you to install and remove the software packages. dpkg is the simplest way to install and uninstall a package.

Debian now supplies a tool named Apt (for “A Package Tool”) and aptitude to help the administrators to add or remove software more easily. Refer to our earlier Manage packages using apt-get for more details.

Installing a Deb Using dpkg -i

syntax: dpkg -i package-file-name -i is to install a package.

The following example installs the Debian package for tcl tool.

$ dpkg -i tcl8.4_8.4.19-2_amd64.deb Selecting previously deselected package tcl8.4. (Reading database ... 94692 files and directories currently installed.) Unpacking tcl8.4 (from tcl8.4_8.4.19-2_amd64.deb) ... Setting up tcl8.4...
0 0