How to download openssh package using apt-get?
The problem is that the package is already installed so I get only:
sudo apt-get install openssh -d
Reading package lists... Done
Building dependency tree... Done
openssh is already the newest version.
Because of being already installed, I don't get the debian package. I should remove it first, but then I would lose USB networking.
I know that this procedure is possible with aptitude, but it's not available for me.
Here is what you do: Remove any packages currently saved in the cache by running sudo apt clean . Include --download-only in the command, e.g: sudo apt install --download-only <NameOfPackage> . This also works for multiple packages, e.g: sudo apt install --download-only <package1> <package2> <package3>
You can also download the dependencies for any package using the conda info command to first list all the dependencies for a specific package, and then copying those dependencies into a requirements. txt file. 2. Copy the list of dependencies, including version information into a requirements.
After installing the APT package, check the /usr/bin/ directory to ensure if it had properly installed. If the file is empty, then run the locate apt-get command again. If no result is shown, there is no alternative but to reinstall the operating system. This might fix the problem.
sudo apt-get install openssh -d --reinstall
this will download the pacakge into /var/cache/apt/archives. however I think you probably mean "openssh-server" or "openssh-client" or "ssh" or something, there isn't an openssh pacakge in debian. You also might be interested in the "--print-uris" option if you are going to be scripting this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With