Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-20-2009, 02:19 AM   #1
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
Custom apt-repository for sid apt-get upgrades

What I want to do is create an apt respository for two or more computers. However, I want one of these computers to serve the packages. Furthermore, I want the server to be able to grab the most recent updates for Sid and be able to provide those packages.

I'm using Debian Sid on a couple of computers. Since I'm not using a fast connection, it would be an annoyance to use "apt-get upgrade" on all of the computers. Therefore, I want to keep one main computer on at all times. This main computer will check for new packages and download them.

The only problem with this logic, however, is that different computers (different hardware, etc.) with Debian Sid may have different packages installed. Therefore, the server computer would only download upgrades to its own packages. At least, that's the experience I've had with making my own repository.


I want to find a way to give the server a list of packages that exist on client computers and itself; afterwards, I want the server to download upgrades (if they exist) for those packages. After that is accomplished, I want these packages to be put into a local repository.

From there, I should be able to use a client computer to access the server's local repository and locally download any existent package upgrades.


I have tried to mirror a Debian repository before, but it didn't work so well. For some reason, the computers thought my repository was not a mirror of the Debian repository. For instance, I would have my repository and the Debian repository in the sources.list. The computer, however wanted to download things from the Debian repository instead of my repository: I had the impression the computer thought my repository was impure and *somehow* not the same. I didn't understand why my packages weren't seen as the same as the Debian repository.

I wanted the repository to appear the same, because that would mean the clients wouldn't have to download as many packages if they already existed (as installed) on the server computer: The ones that did exist could be transferred more quickly than being downloaded over the Internet.

Because if I had a server that downloaded stuff like LaTeX and Openoffice packages from Debian or its mirrors, then I could create a local repository mirror and provide it to my client computers.

How do I do what I want to do?

Last edited by Cyberman; 02-20-2009 at 02:22 AM.
Old 02-20-2009, 01:21 PM   #2
LQ Newbie
Registered: Oct 2006
Posts: 18

Rep: Reputation: 0
You should be looking at apt-pinning. In this case, you would pin your repository higher than the debian repositories. Also, apt-mirror may be useful here too.


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
apt-get error blocking all new packages and upgrades hedpe Linux - Software 2 11-16-2007 01:02 AM
Sid apt-get error JimBass Debian 8 07-17-2007 08:59 PM
There is a way to do automatic upgrades in Slackware 9.1(like apt-get)? maxx_arg Slackware 25 07-12-2004 02:18 AM
APT--Kernel upgrades? Spotnik Red Hat 1 05-01-2004 11:01 AM upgrades rdanda Debian 1 06-25-2003 06:59 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:11 AM.

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