LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-18-2004, 12:38 AM   #1
leiavoia
Member
 
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, 04:41 AM   #2
darkleaf
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, 10:54 AM   #3
leiavoia
Member
 
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, 01:45 PM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,241

Rep: Reputation: 77
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:
Code:
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, 09:34 PM   #5
TKS
Member
 
Registered: Dec 2003
Location: NC, USA
Distribution: Slackware, VectorLinux, Smoothwall, and PCLinuxOS
Posts: 40

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

Rep: Reputation: 15
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
 
  


Reply


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 08:30 PM
Possible .deb file ? conrad10781 Debian 7 06-05-2005 07:28 AM
Installing a .deb file aznboi12321 Linux - Newbie 3 02-26-2005 07:58 PM
Installing a .deb file. inZioN Debian 1 04-14-2004 11:16 AM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration