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?










share|improve this question




















  • 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/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




    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




    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















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?










share|improve this question




















  • 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/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




    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




    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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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/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




    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




    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














  • 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/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




    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




    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








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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

List directoties down one level, excluding some named directories and files

list processes belonging to a network namespace

list systemd RuntimeDirectory mounts