[SOLVED] Cannot find ssmtp for Centos 5

General support questions including new installations
rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

[SOLVED] Cannot find ssmtp for Centos 5

Post by rtcary » 2016/03/26 18:11:46

I know, my Linux server is way out of date, but the box keeps chugging along. I would like to install ssmtp, but yum cannot find it. Does anyone know what repository may have it for Centos 5?

With appreciation...

Todd

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot find ssmtp for Centos 5

Post by scottro » 2016/03/26 18:18:38

EPEL should have it, according to pkgs.org.

http://pkgs.org/search/?query=ssmtp&type=smart
New users should check the FAQ and Read Me First pages

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Cannot find ssmtp for Centos 5

Post by rtcary » 2016/03/26 18:20:49

How do I configure yum to use that repository?

Thank you for the help...

Todd

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot find ssmtp for Centos 5

Post by scottro » 2016/03/26 19:44:54

I don't know if you're familiar with the CentOS wiki, but it can often be a great resource. https://wiki.centos.org/AdditionalResou ... positories has section about 3rd party repositories which explains it.

(Actually, you can probably just download the rpm, it shouldn't have many dependencies.)
New users should check the FAQ and Read Me First pages

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Cannot find ssmtp for Centos 5

Post by rtcary » 2016/03/26 22:08:01

epel-release-5-4.noarch.rpm does not contain ssmtp yet I find several sources that used it for installing ssmtp.

Not sure how that can happen! Is there a rpm command to make sure it is using epel-release-5-4.noarch.rpm?

rpm -qi | grep ssmtp comes up empty.

Todd

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot find ssmtp for Centos 5

Post by scottro » 2016/03/27 00:38:32

Once you start mixing around rpms, you can break your system, however, if you have EPEL for RHEL-5 installed, you can probably risk just downloading the rpm yourself and installing it. If it fails to install due to dependencies, then you may be out of luck. You can also try to build it from source, another thing that can also wind up breaking things.

I doubt that it would, but both of the things I mention here are less safe than just installing the rpm.

Not sure why yum can't find it, I see it in the list of packages.
https://dl.fedoraproject.org/pub/epel/5/x86_64/ (That's for x86_64 but it's also in i386).
New users should check the FAQ and Read Me First pages

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot find ssmtp for Centos 5

Post by TrevorH » 2016/03/27 01:47:32

I think you misunderstand what epel-release does. It doesn't contain ssmtp itself, it adds a new yum repository to your system that contains around 8,000 extra packages. Once you run yum --enablerepo=extras install epel-release and reply Y to allow it, now you have access to all the packages in EPEL and can run yum install ssmtp and it should find it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot find ssmtp for Centos 5

Post by scottro » 2016/03/27 12:43:09

Bah, thank you Trevor, I'm going to blame missing that on lack of caffeine. I read it as what I expected to read, i.e. that he'd installed the repo but it didn't have the package. @rtcarey, Trevor gave the proper answer, I made an incorrect assumption, thinking you'd installed the epel rpm and then done yum install ssmtp.
New users should check the FAQ and Read Me First pages

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Cannot find ssmtp for Centos 5

Post by rtcary » 2016/03/27 17:13:03

When I enter

yum --enablerepo=extras install epel-release

I receive this

Package epel-release-5-4.noarch already installed and latest version
Nothing to do

Then I enter

yum install ssmtp

And I receive

Setting up Install Process
No package ssmtp available.
Nothing to do

That is what is confusing me...

Todd

rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

Re: Cannot find ssmtp for Centos 5

Post by rtcary » 2016/03/27 17:22:20

I left out this -- does it help?

[root@centos5 webmin]# yum install ssmtp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: repos.redrockhost.com
* extras: mirror.hostduplex.com
* updates: centos.mirror.ndchost.com
http://dl.google.com/linux/rpm/stable/i ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://dl.google.com/linux/chrome/rpm/s ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Setting up Install Process
No package ssmtp available.

Todd
rtcary

Post Reply