Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 11-18-2004, 01:38 AM   #1
Registered: Mar 2002
Distribution: Debian Testing & Kubuntu
Posts: 72

Rep: Reputation: 15
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.
Old 11-18-2004, 05:41 AM   #2
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Can't you just install it with dpkg -i (path)
Old 11-18-2004, 11:54 AM   #3
Registered: Mar 2002
Distribution: Debian Testing & Kubuntu
Posts: 72

Original Poster
Rep: Reputation: 15
yes :-)

I did that, but i'm only asking for future reference.
Old 11-18-2004, 02:45 PM   #4
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,241

Rep: Reputation: 77
Try this:
cd /home/leiavoia/incoming/debs
mkdir binary
mv *.deb binary
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
Then as root:
nano /etc/apt/sources.list
Add the line:
deb file:/home/leiavoia/incoming/debs/binary/ ./
Then as root:
apt-get update
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.
Old 04-14-2005, 10:34 PM   #5
Registered: Dec 2003
Location: NC, USA
Distribution: Slackware, VectorLinux, Smoothwall, and PCLinuxOS
Posts: 40

Rep: Reputation: 15

Would this work with a samba file share?


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.
Old 04-15-2005, 08:12 AM   #6
LQ Newbie
Registered: Jan 2005
Distribution: Debain
Posts: 25

Rep: Reputation: 15
Re: work?

Originally posted by TKS
Would this work with a samba file share?


deb smb://file/share/system/package/deb/binary/ ./
NO unless your mounting it


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
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
Possible .deb file ? conrad10781 Debian 7 06-05-2005 08:28 AM
Installing a .deb file aznboi12321 Linux - Newbie 3 02-26-2005 08:58 PM
Installing a .deb file. inZioN Debian 1 04-14-2004 12:16 PM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 09:11 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:24 PM.

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