Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to uninstall SSH

Status
Not open for further replies.

datadan

IS-IT--Management
Jul 22, 2002
283
US
I want to upgrade my SSH and Apache packages. I read that I should uninstall the existing one.

How do I do this? Just delete the folders after stopping httpd and sshd?

THanks

 
There is no reason to remove if you are replacing with a similar method. Therefore, you can upgrade .RPMs with .RPMs and you can replace source-compiled binaries with new compiled versions IN The SAME destination folders.

What gets icky, particularly on RedHat boxen is trying to replace SSH .RPMs with SSH source. If that's what you need, let me know here and I'll try to make some sense of my prior efforts.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
thedaver:

I think that's what I need.

1) ssh -V reveals:

OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f

2) reviewing both my /opt/7.3/patches directory and /var/logs/rpmpkgs directory:
kdessh-3.0.0-4.i386.rpm
openssh-3.1p1-6.i386.rpm
openssh-askpass-3.1p1-3.i386.rpm
openssh-askpass-gnome-3.1p1-6.i386.rpm
openssh-clients-3.1p1-6.i386.rpm
openssh-server-3.1p1-6.i386.rpm

However doing a rpm -verify openssh....
on each one reveals:
rpm ... not installed.

This leads me to believe that ssh was installed with source not with an RPM. Am I correct? How Can I verify whether installation was with RPM or source?

Thanks,


 
Command: rpm -qa | grep -i ssh
Yields:

openssh-askpass-3.1p1-6
openssh-askpass-3.1p1-3
openssh-clients-3.1p1-3
openssh-clients-3.1p1-6
openssh-3.1p1-3
kdessh-3.0.0-4
openssh-3.1p1-6
openssh-server-3.1p1-6
openssh-askpass-gnome-3.1p1-3
openssh-server-3.1p1-3
openssh-askpass-gnome-3.1p1-6

Does this mean that openssh-askpass-3.1pl-6 and -3 are running even though ps-aux stats I only have 1 daemon running?

 
OK, let's take one thing at a time.
First, the listing you show indicates what has been installed on the system. Installed and running are entirely different. Your car has a spare tire, but it's not necessarily in use.

It looks to me like you did the incorrect method of adding an update of SSH .RPM packages. Thus you have two instances of the same programs, at least in the .RPM database, which is going to cause no undue confusion. You need to execute the following commands to clean things up a bit.

rpm -e --no-deps openssh-askpass-3.1p1-3
rpm -e --no-deps openssh-clients-3.1p1-3
rpm -e --no-deps openssh-3.1p1-3
rpm -e --no-deps openssh-server-3.1p1-3
rpm -e --no-deps openssh-askpass-gnome-3.1p1-3

Next you need to get a set of the newest OpenSSH .RPMs from rpmfind.net or redhat.com or anywhere... you are behind in ssh versions.

ONCE YOU DOWNLOAD THE .RPMS use the 'rpm -Uvh XXX.rpm' construct. This upgrades the prior version of the same program through replacement!! Very important.

You should be able to check the same issues with Apache and OpenSSL, undo any duplicated installs by removing the older version of the files, and use -Uvh to fix the damage with the newest .RPMs.

If you are showing the same versions of .RPMs as are available for download, do the download anyway and use the '--force' parameter to ensure that the .RPM gets installed properly.



Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Great tips, Thank you, but I'm still stuck.

I've go dependancy issues: To update to a current ssh I have to update:

FHS (file system)
glibc
basesystem
setup

These are pretty core packages on my 7.3 red hat system. Additionally some are only offered in noarch/arch or src on rpmfind.

Can I just rpm these updates in as well? Or will I fundamentally screw something up?


Also what is the difference between:
i386,i686,noarch,arch,and src rpms?
Thanks,
 
glibc 2.3 or greater is required for ssh 3.7.1 ; however glibc 2.3 is not available for rh 7.3. I guess I have to upgrade to a higher level of rh? Or can I just grab the glibc for rh9 and install on my 7.3 system?

Thanks
 
I have to guess at this point that you're trying to install the wrong .RPMs for your version!!
Rather than take a great deal of time to fix it - which may not be possible - have you considered re-installing the system? Is this an option? You're in an ugly situation that will never get better..... Perhaps you'd like to use RH9 to install anew with?!

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top