Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to create a package repository for my packages in ubuntu and this repository will be using in multiple Ubuntu systems to install and update packages.

share|improve this question
    
Could you clarify what you mean a little - we seem to be answering two different questions in the responses below! Are you looking to cache the official packages you install so that other machines can get them locally rather than redownloading over the public internet, or are you looking to create a repository of packages that you have created yourself? –  David Spillett Jun 26 '09 at 12:58
    
yes, I planing to create a my own package repository in ubuntu –  Charly Aug 13 '09 at 15:01

5 Answers 5

Here's a wiki page about personal repositories, i think you'll have to share it with http or nfs for example. For information, here 's another guidelines article, maybe it is somehow outdated now.

share|improve this answer
  1. Create a directory for your debs
  2. Put them in there
  3. Share it via a web server (eg, apache)
  4. Install the "dpkg-dev" package
  5. In the directory run this:

    dpkg-scanpackages . /dev/null > Packages

  6. Add this repository to your clients with a sources.list line like this:

    deb http:/// ./

An alternative is the mini-dinstall package, which is more work to set up, but less to maintain, especially for multiple users.

share|improve this answer

The apt-cacher package (see here fro the Ubuntu package description and here for a tutorial) offers the facility to create a local cache of packages that can be used by all the machines on your network.

There is also apt-proxy which performs a similar core function but there are people who suggest it is less stable/reliable, and approx which again seems to perform the same main task. All these options are also available in the Ubuntu "universe" repos, at least for Jaunty.

Note: I've not yet got round to trying any of these packages (I keep meaning too as it would save time/bandwidth when-ever I setup a new VM for testing stuff...)

share|improve this answer

I've used approx before to simply cache and mirror upstream packages locally to my main test machine that I tested packages on before updating the entire network. Then all my local machines would be set to update from the test machines approx repo cache.

There are also packages like reprepro which can handle much of the repo management tasks for you and even properly GPG sign the repo files so that apt/dpkg/etc don't complain when people update packages from your repo.

share|improve this answer

You can also use Ubuntu PPA's (Personal Package Archive) to store your own software. Canonical, the company behind Ubuntu, will store it and serve it out for free over the internet to anyone

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.