Difference between revisions of "RHEL Yum"
From Hawk Wiki
(→Yum Management) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | ==Yum Management== | + | ==Yum Repo Management== |
By default, Redhat repo does not contain php-mbstring in Amazon AWS. php-mbstring is required for phpMyAdmin, wordpress, etc.<br> | By default, Redhat repo does not contain php-mbstring in Amazon AWS. php-mbstring is required for phpMyAdmin, wordpress, etc.<br> | ||
To Install php-mbstring | To Install php-mbstring | ||
Line 10: | Line 10: | ||
</pre> | </pre> | ||
==Yum Add or Disable Repo== | ==Yum Add or Disable Repo== | ||
+ | ===Add Repo=== | ||
<pre> | <pre> | ||
− | |||
yum-config-manager --add-repo repository_url | yum-config-manager --add-repo repository_url | ||
</pre> | </pre> | ||
− | Disable | + | ===Disable Repo=== |
− | + | <pre> | |
+ | rpm -qa |grep -i rpmfusion | ||
+ | $rpmfusion-nonfree-release-13-2.noarch | ||
+ | $rpmfusion-free-release-13-2.noarch | ||
+ | #Then do | ||
+ | rpm -e <reponame> | ||
+ | #example | ||
+ | rpm -e rpmfusion-free-release-13-2.noarch | ||
+ | </pre> | ||
see also | see also | ||
− | |||
http://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/ | http://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/ | ||
+ | ==Check RHEL version== | ||
+ | <pre> | ||
+ | $ cat /etc/redhat-release | ||
+ | CentOS release 5.4 (Final) | ||
+ | </pre> |
Latest revision as of 04:23, 4 April 2015
Contents
Yum Repo Management
By default, Redhat repo does not contain php-mbstring in Amazon AWS. php-mbstring is required for phpMyAdmin, wordpress, etc.
To Install php-mbstring
yum repolist all # found rhui-REGION-rhel-server-optional in the list yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional yum search php- yum install php-mbstring
Yum Add or Disable Repo
Add Repo
yum-config-manager --add-repo repository_url
Disable Repo
rpm -qa |grep -i rpmfusion $rpmfusion-nonfree-release-13-2.noarch $rpmfusion-free-release-13-2.noarch #Then do rpm -e <reponame> #example rpm -e rpmfusion-free-release-13-2.noarch
see also http://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/
Check RHEL version
$ cat /etc/redhat-release CentOS release 5.4 (Final)