Install ssh on offline computer without downloading each deps manually
Hi peeps!
I have a Debian buster machine that I would like to install openssh-server, unfortunately the machine is offline and would like to know if there is a simple way of installing it without having to download each dependency manually. I have researched online and found apt-offline and went through the man pages for apt however I cant seem to find a solution that meets my needs. I thought maybe I could just transfer a single file from a working machine but something tells me its not possible. I would like to install ssh on the machine without apt moaning about deps issues. Thanks |
Quote:
You could set up a local repository that includes the packages you want to install, or maybe burn a Debian installation DVD that contains what you need, but ultimately you need to get those packages onto your machine somehow, including dependencies of course. May I ask what use openssh-server is without an internet connection? |
Thanks for your reply! I guess without the DVD it will be a much more teething process.
The machine is just a box that I am playing around with at home. I am wanting to setup a little server on a HP Proliant Micro Server that will just sit in a corner and quietly serve. My internet connection is currently down so I guess it was bad timing to start playing. Ill mark this thread as solved, Thanks again! |
You could set up a similar machine and do all of its setup through apt-cacher or squid. Then move the cache over to the offline machine. Or you could mirror the repository and then move that to where the offline machine can get to it.
|
There's also apt-offline. And an old howto for it.
|
Not possible you need the support files or it will never install, to find what you need.
Code:
root@buster-raspi:~# apt depends openssh-server https://packages.debian.org/buster/libpam0g |
Thanks everybody for your valuable input, each suggestion is definitely a possible solution. Ill have a look to see which option is possible with my current setup and situation.
|
One very easy way to do that would be to (temporarily) connect to the internet, do the install and upgrade, then disconnect and move it back to where it is isolated as you want it to be.
|
All times are GMT -5. The time now is 08:54 PM. |