LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-05-2005, 10:14 AM   #1
Virp00
Member
 
Registered: Jan 2005
Posts: 81

Rep: Reputation: 15
Installing *.deb files locally


I downloaded the .deb skype file off their website. Since I'm still getting the hang of the apt-get commands, I'm not sure how to install the package off my harddrive. What command do I issue to install the package?
 
Old 03-05-2005, 10:25 AM   #2
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
easiest way is to use 'kpackage'
its got a nice gui, then install the package with that..
its pretty intuative, i think you click File > New Package and browse for it where you saved it.

hit install

<edit>
with kpackage, you can also download / update packages similar to apt-get
its very nice
</edit>

Last edited by soylentgreen; 03-05-2005 at 10:32 AM.
 
Old 03-05-2005, 10:25 AM   #3
uman
Member
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 15
Unfortunately I'm not a Debian user and I can't help you with yuor problem, but I recommend next time posting this in the Debian forum, because it's a distro-specific question. You will get a better response there.
 
Old 03-05-2005, 10:27 AM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Use "dpkg -i skypepackage" that'll install it. Apt is a frontend to dpkg (as you can see from the output of apt especially with errors).
 
Old 03-05-2005, 10:37 AM   #5
uman
Member
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 15
edit: sorry double post
 
Old 03-05-2005, 10:50 AM   #6
Virp00
Member
 
Registered: Jan 2005
Posts: 81

Original Poster
Rep: Reputation: 15
Sorry to be an annoyance, but I issued the command "dpkg -i skype_1.0.0.7-1_i386" when the file was in my home folder. I got the message
"dpkg: error processing skype_1.0.0.7-1_i386 (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
skype_1.0.0.7-1_i386"

What am I doing wrong?
 
Old 03-05-2005, 10:53 AM   #7
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
The command should be dpkg -i skype_1.0.07-1_i386.deb
 
Old 03-05-2005, 11:00 AM   #8
Virp00
Member
 
Registered: Jan 2005
Posts: 81

Original Poster
Rep: Reputation: 15
I entered that command and still got :

debian:/home/dave# dpkg -i skype_1.0.07-1_i386.deb
dpkg: error processing skype_1.0.07-1_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
skype_1.0.07-1_i386.deb
 
Old 03-05-2005, 01:56 PM   #9
Virp00
Member
 
Registered: Jan 2005
Posts: 81

Original Poster
Rep: Reputation: 15
do I have the package in the wrong directory?
 
Old 03-07-2005, 04:59 PM   #10
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
and your output from ls -l for the directory /home/dave includes this file?

Try dpkg -i sk and then hit the TAB button your keyboard, if the name doesn't auto complete then your deb pack is not in the /home/dave directory.
 
Old 03-07-2005, 05:05 PM   #11
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
skype_1.0.0.7-1_i386.deb

is the name of the file that I see from google, not as you typed it. That was just a clerical error on my part. dpkg -i filename (including extension is the format)

Last edited by audibel; 03-07-2005 at 05:10 PM.
 
Old 03-07-2005, 05:08 PM   #12
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
You can install a .deb package from any directory. Just make sure you're actually in the correct directory when you issue the command, (or type out the filename as a full path, or whatever).

Also, you need to be logged in with root access to run dpkg -i ...

To get root access, you can type in the command "su" at the terminal. It'll ask you for the password (type in the root account's password).
 
Old 03-07-2005, 06:13 PM   #13
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
I download any update debs at work and burn them to a cd and stick them on my home machines. (only 56k at home).

The way I do it is I have a dedicated folder (in my case /var/local/debs.

Anyway, I just drop them in there and run scanpackage on the folder.

you will need to create an empty file in var/local called file then, as root in /var/local issue the command.

dpkg-scanpackages debs file | gzip > debs/Packages.gz

This will create a Packages.gz in the debs folder.

Add this file as a source to /etc/apt/sources.list
This is done by adding the line

deb file:/var/local/ debs/

Once that is done, run

apt-get update

This will update the sources list and when you run synaptic you will see whatever new binaries in your normal list of available packages. Whenever you add new packages to the folder, you will have to run the dpkg-scanpackages and update again so the Comp knows what it has.

I have also mounted this via nfs so it is available to my home network when I update those machines.

I know this is a bit hard and longwinded, but it works for me at the moment and once you set it ip, its easy. I really must get broadband.

Hope this helps. The apt-howto covers this as well.
 
  


Reply



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
dependency hell - installing .deb files without apt-get SerfurJ Debian 5 01-27-2005 02:51 PM
Installing .deb files on Debian kram Linux - Newbie 2 01-22-2005 12:10 PM
installing .deb files in YDL MACSRULE Linux - General 2 04-14-2004 07:10 PM
.deb files unkind Debian 2 11-29-2003 08:48 PM
Where you place non deb files Kroenecker Debian 4 10-12-2003 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 PM.

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
Open Source Consulting | Domain Registration