debian linux and ubuntu desktop

Dear Experts:

Iam planning to install debian 6.0 for the production server which works as samba domain controller, nfs server , local name server , ftp etc. as few desktops planning for ubuntu desktops my doubt since debian and ubuntu uses the same package management aptitude,  Is it possible to set local repository in the debian server and do the package management like install, remove to the ubuntu desktops ( ubuntu desktops uses the local repository configured in debian server for the package management). Please suggest me. If possible then it is great and request to provide me the how -to docs for creating the local repository on debian server for the ubuntu desktops. Please help thanks in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You would need to use the apt-mirror program:

The methodology is very well described in this HowTo:
(Although a little old - it covers Debian Sarge and Ubuntu Edgy - the principle will still be the same with the exception that you no longer need to edit your sources list in order to install apt-mirror)
I'm sceptic about this, mccracky.

"apt-cacher", as the name suggests and is confirmed by the links you posted, was designed to create a 'cache' of the repository that is used by the server itself, in this case the Debian 6 repo. It was made for distributing files among server and client of the same distro.
But what the asker wants to do is create an Ubuntu repo on a Debian server.

On a side note:
The formatting in the second howto is catastrophic and plain misleading. Using the following command (as instructed in the second link) will not result in anything positive:
$sudo Apt-get Install Apt-cacher

Open in new window

IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

@torimar - No.  Apt-cacher is just a proxy/cache for apt.  

If you read the second link, there is the "path_map" directive that defines which "local" repos would be mapped to which "remote" repos.  You don't have to use the server's repos, though you can.

You set up the mapping between "local" and "remote" repos and then point the various machines to use the "local" repo.

The advantage of the apt-cacher vs. the apt-mirror is that you are only using space/bandwidth for the packages actually used rather than mirroring the whole repo.
I see. So it really depends on what the asker is planning to accomplish here.
Yes, that is true.  It is unclear whether the purpose is:

1. to save bandwidth - apt-cacher is probably best.
2. have one mirror for "approved" packages only - probably something like a "ppa" repo would fit.
3. have one "shared" mirror between debian/ubuntu - difficult and "a lot" of maintenance.
D_wathiAuthor Commented:
Thanks for all. one is i felt maintaining the local repository and installing the packages to the clients will be good. but please suggest me if it s not a good idea. also few systems does not  have a Internet . Please suggest
Although I imagine there could be more specific reasons for creating a local repo that you have control over, the main purposes for such repos are 1.) you want to save bandwidth; 2.) some of the computers in your network are not connected to the internet.

For you, #2 seems to already apply. Personally, I think it is  a good idea to go for the local repo.

You now have to decide which method to use: apt-mirror or apt-cacher.
apt-mirror: This method will reproduce the entire Ubuntu repo (~30-40 GB) on your server. Once the initial download has been done, future uses of the command will only update that repo and download packages that have been modified.
This method is very well fit, for instance, for cases like this:
-- you want to make a dist-upgrade on lots of client computers;
-- you want to make sure that there is a possibility to maintain, update, install your clients even if the networks access to the internet should fail;

apt-cacher: This method will only download packages from the official Ubuntu repo on demand, i.e. when at least one of the client computers requests them. You will never have a complete mirror of the official repo, hence you will not have to initially download those 30-40 GB once before you can start to use the local repo.
This method is well fit for cases like this:
-- you want to modify one large package on a large number of computers, e.g. you want to replace OpenOffice by LibreOffice on all of your clients;
-- you mainly want to provide a repo for those of your computers that are not connected to the internet.

Personally, I'd go with apt-mirror because it is the more 'complete' approach.

D_wathiAuthor Commented:
Thank you very much for the detailed mail. SIr before closing . with debian server can i maintain the local repository for the ubuntu desktop packages. Please suggest thanks in advance.
Yes. After all, that is what the whole story was about from the very beginning.

All you need to do is configure the /etc/apt/mirror.list to mirror the Ubuntu ("maverick") sources. The second link I presented in my first comment above will give you detailed instructions (which only need to be adapted to Ubuntu 10.10).

On a side note: You could even mirror both Ubuntu and Debian repos on the same server; this is what the author of the howto is doing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Yes, you can even host an ubuntu repo on a RedHat box, if you want.  The server flavor of Linux doesn't matter, you just need to have the repo software and the packages hosted.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.