It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
For those of you that use Linux daily, these are very simple question, and for that please accept my apologies.
Dr. Todd
On Sun, 27 Mar 2011, Todd Cary wrote:
It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
For those of you that use Linux daily, these are very simple question, and for that please accept my apologies.
How about yum install php-mcrypt?
Regards,
On 3/27/2011 8:48 PM, Tom Diehl wrote:
On Sun, 27 Mar 2011, Todd Cary wrote:
It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
For those of you that use Linux daily, these are very simple question, and for that please accept my apologies.
How about yum install php-mcrypt?
Regards,
Tom -
Only of the many things I forgot is where or not you have to specify the version in the "yum" command. From what you indicated, I do not.
Many thanks....
Todd
It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
For those of you that use Linux daily, these are very simple question, and for that please accept my apologies.
Dr. Todd
--------------------------
Dr. Todd,
Login to the root account
Type in the following : yum search php-mcrypt
you should get something like :
======================================== Matched: php-mcrypt ======================================== php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
If this is what you want type in :
yum install php-mycrypt
Have Fun!!!
Greg
On 3/27/2011 8:48 PM, Gregory P. Ennis wrote:
It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
For those of you that use Linux daily, these are very simple question, and for that please accept my apologies.
Dr. Todd
Dr. Todd,
Login to the root account
Type in the following : yum search php-mcrypt
you should get something like :
======================================== Matched: php-mcrypt ======================================== php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
If this is what you want type in :
yum install php-mycrypt
Have Fun!!!
Greg
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Greg -
I remember using rpm to do many of the same things as rpm. What factors should one consider in deciding whether to use rpm or yum?
For the last 6 years I used yum update to keep my 4.1 updated (all the way to 4.8).
[That was about all I ever had to do to the server - except when the power went off longer than the UPS could keep it up if I was not home - then I had to boot it up :-)]
On 03/27/11 9:17 PM, Todd Cary wrote:
I remember using rpm to do many of the same things as rpm. What factors should one consider in deciding whether to use rpm or yum?
rpm installs .rpm files. yum finds rpm files on configured repositories, downloads them, checks their dependencies, and asks if its OK to get those too, then runs rpm to install all the packages.
On 28/03/11 2:33 PM, Todd Cary wrote:
It has been 6 years since I set up my Linux server and have hardly had to touch it in all of those years other than running yum update, so I ma rusty in some of the fine details (especially at 72).
That's not old, I've been corresponding with a 78 year-old crypto freak on another mailing list. ;)
I located a source for the php-mcrypt rpm (php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm), however, isn't there an easier method to get and install the appropriate rpm - other than downloading it then running rpm? And when should I use yum rather than rpm?
Use Yum whenever possible.
One thing that is worth mentioning, though, is that php-mcrypt 5.1.x is a little old and a lot of things which require it (e.g. a CMS like WordPress) need 5.2 or above and higher versions of PHP. Fortunately these are all currently available in the CentOS Testing repository. This is where I grabbed my versions from to get WordPress to behave (i.e. recognise timezones). My /etc/yum.repos.d/Centos-Testing.repo file contains:
[c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing priority=5 includepkgs=php*
If you make this change you should also add "exclude=php*" to the end of the [base] and [updates] sections of the Centos-Base.repo file.
Only include the "priority" line if you have that set in your other .repo files (everything in my Centos-Base.repo file has a priority of 1, except for [contrib] which has a priority of 2).
There's a very good guide on how to do this properly here:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2?highlight=%28php%29
I recommend following it because the chances are that your need for installing php-mcrypt in the first place is for something that needs at least version 5.2.
Regards, Ben