LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-20-2007, 07:58 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Setting up local own Debian Package repo


I am generally involved in a task where I need to download/install/remove/configure packages a lot of times as I experiment those packages. Every now and then when I break my system I just re-install it from the Debian repo through the internet. Now downloading packages from internet takes time (at least if you are starting from scratch.)

What I would like to do is to copy all the packages from the Debian repos (the Debian mirror) on to my machine at my home (I have a spare computer for this.) and then I am planning to do apt-get install just as the way we do usually with the only difference that this time the packages will be pulled from my home machine (whatever the IP is) instead of ftp.debian.org or something like that.

How can I achieve this?

I have found this link but I am not sure if they are what I am looking for or is there any better pointer:
http://www.debian.org/doc/manuals/re...pository-howto

http://www.debuntu.org/how-to-set-up...ith-apt-cacher

Please suggest.

Thanks
 
Old 08-20-2007, 08:13 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Create the Debian repository just like in the first link, then edit your sources.list to point it to the IP of your server. That means that any reference to your current repository (e.g. http://ftp.debian.ca) has to be changed to http://192.168.1.10 (if that's the address of the server).
 
Old 08-20-2007, 08:44 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by Dutch Master View Post
Create the Debian repository just like in the first link, then edit your sources.list to point it to the IP of your server. That means that any reference to your current repository (e.g. http://ftp.debian.ca) has to be changed to http://192.168.1.10 (if that's the address of the server).


Hmm..Actually that tutorial is not a detailed one. It assumes many steps will be performed by user on their own without any help. For example, it does not show the actual command usage which will copy all the packages (.deb) from the official debian repo to my local server.

Thanks
 
Old 08-20-2007, 09:04 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
True. But you are actually building a private-use mirror, so this page might be helpful: http://www.debian.org/mirror/ftpmirror Read especially the "how to mirror" section and the script named in it. It automates a lot for you, based on the preferences you've put into it. The script has plenty comments and for you the section on how and what to exclude might be especially useful.
 
Old 08-21-2007, 08:53 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by Dutch Master View Post
True. But you are actually building a private-use mirror, so this page might be helpful: http://www.debian.org/mirror/ftpmirror Read especially the "how to mirror" section and the script named in it. It automates a lot for you, based on the preferences you've put into it. The script has plenty comments and for you the section on how and what to exclude might be especially useful.

thanks. Also I found this one

Do you think that is a good one too?
 
Old 08-21-2007, 10:11 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yeah, I quickly skimmed through it and it looks pretty comprihensive to me. However, it does refer to the repository-howto on debian.org and I suggest you'd read that too. Btw, the link you gave is incorrect, it has a http part too many
 
  


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
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
Error message after setting a local repo for YUM Unforgiven79 Fedora 1 01-14-2007 10:21 AM
local apt repo anantshri Linux - Software 1 01-02-2006 06:33 AM
local apt repo adem0rdna Fedora 5 02-08-2005 09:59 PM
I need a local rpm repo a13x Linux - Networking 4 12-16-2004 11:27 PM

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

All times are GMT -5. The time now is 01:39 PM.

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
Open Source Consulting | Domain Registration