[SOLVED] Install ssh on offline computer without downloading each deps manually
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
If the packages aren't on your system already, there's no other way really.
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.
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.
You need all the packages it depends on installed, if you have machine that has it installed you will find them in the /var/cache/apt/archives/ if it has not been cleaned. Or a search on the Debian site will get you a download link to the .deb package. This of course would mean you need to go where you can get net connection.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.