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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-05-2005, 10:14 AM
|
#1
|
Member
Registered: Jan 2005
Posts: 81
Rep:
|
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?
|
|
|
03-05-2005, 10:25 AM
|
#2
|
Member
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221
Rep:
|
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.
|
|
|
03-05-2005, 10:25 AM
|
#3
|
Member
Registered: Sep 2004
Distribution: Gentoo
Posts: 134
Rep:
|
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.
|
|
|
03-05-2005, 10:27 AM
|
#4
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Rep:
|
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).
|
|
|
03-05-2005, 10:37 AM
|
#5
|
Member
Registered: Sep 2004
Distribution: Gentoo
Posts: 134
Rep:
|
edit: sorry double post
|
|
|
03-05-2005, 10:50 AM
|
#6
|
Member
Registered: Jan 2005
Posts: 81
Original Poster
Rep:
|
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?
|
|
|
03-05-2005, 10:53 AM
|
#7
|
Member
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177
Rep:
|
The command should be dpkg -i skype_1.0.07-1_i386.deb
|
|
|
03-05-2005, 11:00 AM
|
#8
|
Member
Registered: Jan 2005
Posts: 81
Original Poster
Rep:
|
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
|
|
|
03-05-2005, 01:56 PM
|
#9
|
Member
Registered: Jan 2005
Posts: 81
Original Poster
Rep:
|
do I have the package in the wrong directory?
|
|
|
03-07-2005, 04:59 PM
|
#10
|
Member
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177
Rep:
|
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.
|
|
|
03-07-2005, 05:05 PM
|
#11
|
Member
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177
Rep:
|
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.
|
|
|
03-07-2005, 05:08 PM
|
#12
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
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).
|
|
|
03-07-2005, 06:13 PM
|
#13
|
Member
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|