2

Possible Duplicate:
Can you install a .deb file via the command line?

I have packages that I have downloaded from the internet and for some reason they won't install inside of Ubuntu Software Center. My question is what command should I use to install a package inside of terminal. I have already downloaded the packages and I need and I just need the command that will install the package, not apt-get.

2
  • To vague... it really depends on what type of installation is required for that package (but all of them will already have been asked on AU. DEB is normal Ubuntu. Example: askubuntu.com/questions/40779/…
    – Rinzwind
    May 22, 2011 at 15:36
  • @Sam-Mercier: If the package does not install from Ubuntu software center then you may not be able to install it from terminal either. Try to figure out why the package is not installing. One reason may be that your system architecture different than one the package is built for.
    – binW
    May 23, 2011 at 8:35

3 Answers 3

5

Use dpkg - package manager for Debian.

dpkg -i yourpackage.deb to install a package.

2
  • Okay. That sounds about right. I had already tried that command, but I think I forgot the .deb. May 22, 2011 at 15:39
  • Make sure to use the full file name, not only the package name. May 22, 2011 at 16:35
2

Navigate to the folder containing the package

cd Desktop/System\ Files/

Type ls to get a list of files in the current directory to be sure you're in the right place

Then dpkg -i PotatoKiller3000.deb to install.

1

Or if you are a gui guy install gdebi and make deb packages open with gdebi.

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