ThePiKid
Posts: 6
Joined: Wed Dec 26, 2012 10:08 am
Location: Wales

Installing a .deb?

Tue Jan 01, 2013 9:28 pm

Hello,
Im new to the Pi, and I need some help
I know how to use the 'sudo apt-get xxx' command, but how do I install a .deb from a USB stick?

User avatar
joan
Posts: 15702
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Installing a .deb?

Tue Jan 01, 2013 9:48 pm

sudo dpkg -i debfile

Cloudcentric
Posts: 1209
Joined: Fri Sep 14, 2012 9:13 am

Re: Installing a .deb?

Tue Jan 01, 2013 9:58 pm

http://www.debian.org/doc/manuals/debia ... asics.html

The most important first step is to ensure the .DEB is compatible with your Linux Distro..

The second most important is ensure you have the dependencies

This is taken from a blog:

"
When you download packages for Linux Debian or Ubuntu they usually come in the .deb format and are installed automatically by your local package manager. If you download them from the internet instead of the repositorial way however you are given the .deb file and have to deal with it yourself. To install it, open a terminal, direct it to the folder where it has been downloaded to with cd and use the dpkg command:

cd /home/ctest/Downloads/
dpkg -i random_name.deb

"
.
.

ThePiKid
Posts: 6
Joined: Wed Dec 26, 2012 10:08 am
Location: Wales

Re: Installing a .deb?

Tue Jan 01, 2013 10:17 pm

Thank you for your help, I'm installing the raspbmc for a dual boot

RibShark
Posts: 9
Joined: Wed Jul 04, 2012 6:10 pm

Re: Installing a .deb?

Thu Jan 03, 2013 9:03 pm

You could also install gdebi using the command:

Code: Select all

sudo apt-get install gdebi
This is a graphical tool (also CLI if you want it) that automatically installs the package and it's dependencies, saving quite a lot of time :D
I BOW BEFORE THE GREAT FLYING POO AND THE MIGHTY JLFKSJLFL

HI FIVE8402
Posts: 1
Joined: Tue Mar 24, 2020 11:43 pm

Re: Installing a .deb?

Tue Mar 24, 2020 11:48 pm

joan wrote:
Tue Jan 01, 2013 9:48 pm
sudo dpkg -i debfile
Where do I use this? Do I need to change my directory to the directory with the .deb file?

User avatar
jahboater
Posts: 7324
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Installing a .deb?

Wed Mar 25, 2020 3:13 am

HI FIVE8402 wrote:
Tue Mar 24, 2020 11:48 pm
joan wrote:
Tue Jan 01, 2013 9:48 pm
sudo dpkg -i debfile
Where do I use this? Do I need to change my directory to the directory with the .deb file?
Yes. Or use the full path to the .deb file.

User avatar
rpdom
Posts: 19047
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Installing a .deb?

Wed Mar 25, 2020 5:10 am

You can now use sudo apt install debfile which will handle any dependencies for you.

While the dpkg method still works, it is the old way of doing things. That's what comes of following instructions that are seven years old!
Unreadable squiggle

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 29347
Joined: Sat Jul 30, 2011 7:41 pm

Re: Installing a .deb?

Wed Mar 25, 2020 8:12 am

HI FIVE8402 wrote:
Tue Mar 24, 2020 11:48 pm
joan wrote:
Tue Jan 01, 2013 9:48 pm
sudo dpkg -i debfile
Where do I use this? Do I need to change my directory to the directory with the .deb file?
I think this might break the record for the oldest necro - over 7 years. Impressive.

And bizarrely still relevant.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Working in the Applications Team.

Return to “General discussion”