Debian This forum is for the discussion of Debian Linux.
|
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.
|
 |
11-18-2004, 01:38 AM
|
#1
|
Member
Registered: Mar 2002
Distribution: Debian Testing & Kubuntu
Posts: 72
Rep:
|
Need help installing local deb file
I downloaded a commercial demo app as a deb file (i'm so glad they support linux!). I saved the file into a directory on my harddrive. OK. Now i want to create a local apt source so that i can install the debs i download properly. Here is what i've done:
$ cd /home/leiavoia/incoming/debs (my repository directory)
$ dpkg-scanpackages ./ /dev/null | gzip - > ./Packages.gz
$ echo "deb file:/home/leiavoia/incoming/debs ./" >> /etc/apt/sources.list
So Packages.gz is now configured and my directory is in the apt sources list. Then i do
$ apt-get update
and it does it's thing. However when i try installing or even looking for the new package with apt-cache search, it cannot find it! Am i doing something wrong? How can i know if apt is picking up my local repository or not?
Thanks for your help. I'm sure it's not a big deal, but i'm missing something.
|
|
|
11-18-2004, 05:41 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Rep:
|
Can't you just install it with dpkg -i (path)
|
|
|
11-18-2004, 11:54 AM
|
#3
|
Member
Registered: Mar 2002
Distribution: Debian Testing & Kubuntu
Posts: 72
Original Poster
Rep:
|
yes :-)
I did that, but i'm only asking for future reference.
|
|
|
11-18-2004, 02:45 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
Try this:
Code:
cd /home/leiavoia/incoming/debs
mkdir binary
mv *.deb binary
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
Then as root:
Code:
nano /etc/apt/sources.list
Add the line:
Quote:
deb file:/home/leiavoia/incoming/debs/binary/ ./
|
Then as root: You can create a source directory later if you want as well. The above has worked for me in creating a simple repository for some gui configuration packages from Morphix.
|
|
|
04-14-2005, 10:34 PM
|
#5
|
Member
Registered: Dec 2003
Location: NC, USA
Distribution: Slackware, VectorLinux, Smoothwall, and PCLinuxOS
Posts: 40
Rep:
|
work?
Would this work with a samba file share?
i.e.
deb smb://file/share/system/package/deb/binary/ ./
Just wondering...I haven't heard of anyone doing this so I wondered if it was possible.
|
|
|
04-15-2005, 08:12 AM
|
#6
|
LQ Newbie
Registered: Jan 2005
Distribution: Debain
Posts: 25
Rep:
|
Re: work?
Quote:
Originally posted by TKS
Would this work with a samba file share?
i.e.
deb smb://file/share/system/package/deb/binary/ ./
|
NO unless your mounting it
|
|
|
All times are GMT -5. The time now is 08:43 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
|
|