user44556
user44556

Reputation: 6083

Downloading package with apt-get when it's already installed on system

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.

Upvotes: 17

Views: 15387

Answers (1)

stew
stew

Reputation: 11366

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.

Upvotes: 32

Related Questions