TPJ
August 7th, 2008, 11:19 AM
Hello!
I have never used Ubuntu (nor Debian, for that matter).
I'd like to make apt use only my private repository (which I'm going to make an offline mirror of some running official repository...), and I'm trying to find out how can I do it.
I think it's possible as follows:
1) Put my repository on my hard disk, in some place (say, /my/repo).
2) Add the following line to the /etc/apt/sources.list:
deb file:///my/repo SuiteCodename main universe multiverse restricted
3) Download all the *.deb files and put them into proper directories (pool/...) in the /my/repo directory.
4) Download the Release, Release.gpg, and the proper Contents files, and place them in /my/repo/dists directory. Download the proper Packages.bz2, Packages.gz and Release files for all the repositories I want to mirror, and place those files in the proper directories in /my/repo/dists directory.
Will such a solution work as I want it to?
My intention is simple: I want to download all the repositories, and place them on my external hard drive. Then I want to install Ubuntu on my offline-working computer, and configure apt to use the repository from my external hard-drive.
Just as I'm doing it with my Arch machines.
I have never used Ubuntu (nor Debian, for that matter).
I'd like to make apt use only my private repository (which I'm going to make an offline mirror of some running official repository...), and I'm trying to find out how can I do it.
I think it's possible as follows:
1) Put my repository on my hard disk, in some place (say, /my/repo).
2) Add the following line to the /etc/apt/sources.list:
deb file:///my/repo SuiteCodename main universe multiverse restricted
3) Download all the *.deb files and put them into proper directories (pool/...) in the /my/repo directory.
4) Download the Release, Release.gpg, and the proper Contents files, and place them in /my/repo/dists directory. Download the proper Packages.bz2, Packages.gz and Release files for all the repositories I want to mirror, and place those files in the proper directories in /my/repo/dists directory.
Will such a solution work as I want it to?
My intention is simple: I want to download all the repositories, and place them on my external hard drive. Then I want to install Ubuntu on my offline-working computer, and configure apt to use the repository from my external hard-drive.
Just as I'm doing it with my Arch machines.