LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2010, 10:15 AM   #1
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Rep: Reputation: 32
how to install a .deb from terminal using apt-get?


So i have a .deb on my computer and i want to install it from terminal. It has dependencies so i want to you apt-get install to solve these as dpkg -i didn't deal with dependencies... i tried sudo apt-get install package.deb but that didn't work
 
Old 08-05-2010, 10:45 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
I use gdebi-gtk to do that

apt-get install gdebi
or maybe its gdebi-gtk

just right-click .deb and choose "open with Gdebi"
 
Old 08-05-2010, 10:50 AM   #3
SebScoFr
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
Do you have to install it directly from your computer?

If it's a .deb package with dependancies it might be on an official Debian repo.

In that case an apt-get install <package_name> will do.
 
Old 08-05-2010, 10:57 AM   #4
gasdim
Member
 
Registered: Jun 2010
Location: Volos GREECE
Distribution: ubuntu derivative
Posts: 157

Rep: Reputation: 28
apt-get install is a process of a package manager and it is looking in repositories so it depends from the app. What app you want to install in order to check? Sometimes you should add another repo to install software now only the main ubuntu

Last edited by gasdim; 08-05-2010 at 10:58 AM.
 
Old 08-05-2010, 02:06 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
dpkg -i then run apt-get -f install
 
Old 08-05-2010, 02:14 PM   #6
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Slackware 14; CentOS; Vyatta
Posts: 372

Rep: Reputation: 33
Neither apt-get nor aptitude can install local .deb packages. Surprising but true. You need to download (if you don't already have it) a package called gdebi (almost certainly available with) -

Code:
apt-get install gdebi
Then cd to the directory with the .deb you originally wanted to install in it, and do

Code:
gdebi ./packagename
Bob's your mothers brother.

Last edited by spoovy; 08-05-2010 at 02:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get with both deb and rpm abd_bela Debian 4 03-14-2010 01:06 PM
Apt screwed after attempt to install a .deb package utw-mephisto Debian 1 02-08-2007 12:46 PM
apt-get for both rpm and deb abd_bela Conectiva 1 02-16-2005 09:40 AM
Knoppix-Install Ok apt-get Deb=Modem not right suguru Debian 0 08-28-2004 03:31 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 02:49 AM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration