Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

try "apt-get source" with --compile or --download-only

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top