How to create a local machine debian repository
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4043
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Useful if you have a .deb package you can't find in any other deb repository, from Linux Questions. I wanted to check out Kasablanca ftp client [don't bother, by the way, it's not very impressive, except it does support encrypted secure ftp. Gftp or Kbear are both ok, but somewhat lacking compared to Filezilla, which by the way runs fine under Wine except the settings don't stick at all, probably a permissions issue.

:: Quote ::
First step:
:: Code ::

cd /home/username/downloads/debs  [note: change to your deb directory path]
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:
:: Code ::
deb file:/home/username/downloads/debs/binary/ ./ [note: change to correct path. There is a space between /binary/ and ./

Then as root:
:: Code ::
apt-get update

If you are looking for a more in depth article on creating a full debian repository, you can try this one

More on gftp sftp setup here
Back to top
Display posts from previous:   

All times are GMT - 8 Hours