DebianThis 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.
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.
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.
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).
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.