installing debian from a local repository
up vote
2
down vote
favorite
I have created a local repository in a debian virtual machine (I'm using virtualbox) by copying packages from iso images into the directory /var/www/html/packages/amd64/ (apache2 is already installed) and now I'm trying to figure out how install the debian os on another machine using only the netinst iso image and my local repository.
is there a way that I can enter my local repository's address (192.168.213.9) during the installation instead of a debian archive mirror hostname? if not then is there a way to use apt to automatically install all required packages after finishing the minimal installation and modifying the sources.list file?
debian system-installation repository
add a comment |
up vote
2
down vote
favorite
I have created a local repository in a debian virtual machine (I'm using virtualbox) by copying packages from iso images into the directory /var/www/html/packages/amd64/ (apache2 is already installed) and now I'm trying to figure out how install the debian os on another machine using only the netinst iso image and my local repository.
is there a way that I can enter my local repository's address (192.168.213.9) during the installation instead of a debian archive mirror hostname? if not then is there a way to use apt to automatically install all required packages after finishing the minimal installation and modifying the sources.list file?
debian system-installation repository
3
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
2
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in/target/var/cache/apt/archivesduring install, or after the first boot in/var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up usingapt-mirror
– ivanivan
Nov 26 at 13:22
2
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, butaptlyshould be useable for your task, and is easy to work with.
– Henrik
Nov 26 at 14:18
1
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
is there a way to makeapt-mirrorget packages from DVDs instead of the official website?
– Sara Khelifi
Nov 28 at 19:10
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have created a local repository in a debian virtual machine (I'm using virtualbox) by copying packages from iso images into the directory /var/www/html/packages/amd64/ (apache2 is already installed) and now I'm trying to figure out how install the debian os on another machine using only the netinst iso image and my local repository.
is there a way that I can enter my local repository's address (192.168.213.9) during the installation instead of a debian archive mirror hostname? if not then is there a way to use apt to automatically install all required packages after finishing the minimal installation and modifying the sources.list file?
debian system-installation repository
I have created a local repository in a debian virtual machine (I'm using virtualbox) by copying packages from iso images into the directory /var/www/html/packages/amd64/ (apache2 is already installed) and now I'm trying to figure out how install the debian os on another machine using only the netinst iso image and my local repository.
is there a way that I can enter my local repository's address (192.168.213.9) during the installation instead of a debian archive mirror hostname? if not then is there a way to use apt to automatically install all required packages after finishing the minimal installation and modifying the sources.list file?
debian system-installation repository
debian system-installation repository
edited Nov 26 at 12:52
GAD3R
24.6k1749104
24.6k1749104
asked Nov 26 at 12:07
Sara Khelifi
161
161
3
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
2
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in/target/var/cache/apt/archivesduring install, or after the first boot in/var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up usingapt-mirror
– ivanivan
Nov 26 at 13:22
2
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, butaptlyshould be useable for your task, and is easy to work with.
– Henrik
Nov 26 at 14:18
1
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
is there a way to makeapt-mirrorget packages from DVDs instead of the official website?
– Sara Khelifi
Nov 28 at 19:10
add a comment |
3
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
2
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in/target/var/cache/apt/archivesduring install, or after the first boot in/var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up usingapt-mirror
– ivanivan
Nov 26 at 13:22
2
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, butaptlyshould be useable for your task, and is easy to work with.
– Henrik
Nov 26 at 14:18
1
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
is there a way to makeapt-mirrorget packages from DVDs instead of the official website?
– Sara Khelifi
Nov 28 at 19:10
3
3
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
2
2
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in
/target/var/cache/apt/archives during install, or after the first boot in /var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up using apt-mirror– ivanivan
Nov 26 at 13:22
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in
/target/var/cache/apt/archives during install, or after the first boot in /var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up using apt-mirror– ivanivan
Nov 26 at 13:22
2
2
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, but
aptly should be useable for your task, and is easy to work with.– Henrik
Nov 26 at 14:18
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, but
aptly should be useable for your task, and is easy to work with.– Henrik
Nov 26 at 14:18
1
1
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
is there a way to make
apt-mirror get packages from DVDs instead of the official website?– Sara Khelifi
Nov 28 at 19:10
is there a way to make
apt-mirror get packages from DVDs instead of the official website?– Sara Khelifi
Nov 28 at 19:10
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484188%2finstalling-debian-from-a-local-repository%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Welcome. Maybe you are looking for the TFTP boot (netbooting), Installing Debian using network booting and Preparing Files for TFTP Net Booting
– GAD3R
Nov 26 at 12:51
2
You would need to set up a mirror structure under the webserver. Alternatively, if you just have a ton of .deb files, stick them in
/target/var/cache/apt/archivesduring install, or after the first boot in/var/cache/apt/archives. Indexes, release files, etc. will still come from normal mirrors but deb files won't need to be re-downloaded. If you want a real mirror, they are easy to set up usingapt-mirror– ivanivan
Nov 26 at 13:22
2
There's more to a Debian repositories than just some packages, so you might not be able to install new hosts from what you have. In addition to doing it all manually, there exists a lot of software for maintaining a (partial) Debian mirror. I've only used it for repositories of private packages, but
aptlyshould be useable for your task, and is easy to work with.– Henrik
Nov 26 at 14:18
1
ftpsync, aptly, maybe reprepro depending on what you want to mirror. I only setup in the past TFTP boot and local repositories of my own packages. For small settings it may not be worth mirroring.
– Rui F Ribeiro
Nov 26 at 14:38
is there a way to make
apt-mirrorget packages from DVDs instead of the official website?– Sara Khelifi
Nov 28 at 19:10