Unset/Remove a yum repo option with yum-config-manager - yum

It's RHEL 7. I can set an option like this:
yum-config-manager --setopt=developer_repo.proxy=http://proxy.example.com:80/ --save
But how do I unset/remove the option using yum-config-manager if it is no longer needed?
Kind regards,
Dietmar

Related

How to install Guacd 1.2.0 with yum

I want to install Guacd v1.2.0, but I only find Guacd v1.1.0 in yum repo.
I know it can install Guacd from source code or docker.
But, using yum suits my situation better than both.
Thank you.

Add libraries for static compilation CentOS 8

How do I install static versions of glibc on CentOS 8?
I am trying to compile a version of rsync using static linked libraries.
How do I install static versions of glibc on CentOS 8
# dnf search glibc
# dnf provides */libc.a
// both commands will (also) reply: glibc-static
# dnf install glibc-static
Note : glibc-static is in this repo: /etc/yum.repos.d/CentOS-PowerTools.repo
# dnf config-manager --enable PowerTools
Package list, "PowerTools" http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/
Example mirror, "PowerTools" http://mirror.centos.org/centos/8/PowerTools/x86_64/os/
I was on CentOS 8. The above answers worked, but I had to change
yum config-manager --set-enabled PowerTools
to:
yum config-manager --set-enabled powertools
in centos8 docker containers:
while I'm trying enable PowerTools to use the command, it does not work:
# dnf config-manager --enable PowerTools
Failed to set locale, defaulting to C.UTF-8
No such command: config-manager. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"
Enable it with the following commands, then it worked:
yum install dnf-plugins-core
yum config-manager --set-enabled PowerTools
yum install dnf-plugins-core
yum config-manager --set-enabled PowerTools
yum install glibc-static
yum install libstdc++-static
These worked for me. Thanks.
That worked for me, had to read all suggestions before build proper one.
yum install -y dnf-plugins-core
yum config-manager --set-enabled powertools
yum install -y glibc-static

How install Intl, GMP and BCMath PHP extensions?

Centos 6.8 Final
Php 7.0.16
Directadmin control panel
yum install php-gmp
yum install php-bcmath
yum install php-intl
result is: No package xxx available.
Thank you.
BCmath is already preinstalled with PHP. http://php.net/manual/en/bc.requirements.php
For other libs try to define repository where yum would search artifacts and then install the extension. For example,
yum --enablerepo=remi install php-intl
Another alter way is described there https://webtatic.com/packages/php70/
Take a look at the php70w-common package which includes gmp, and further just install php70w-bcmath and php70w-intl. Don't forget to enable all packages inside php.ini.

how install pdo-mysql in centos7

I install laravel 5 and then install packages neede.
I install php-pdo and some other but now i cant install pdo-mysql and laravel return error.
PDOException in PDOConnection.php line 47: could not find driver
I am use Centos 7 and PHP 5-6-29.
Check which package is installed (which provider) and provides the stack, then use the same namespace.
Webtatic uses php56w-*
IUS uses php56u-*
remi-safe (SCL packages) use php56-php-*
remi-php56 simply use php-*
other providers can use something else
As you need pdo_mysql driver, simply
yum install <namespace>-pdo_mysql
(using the ext name, yum will find the correct package name which provides this ext).
Also check you don't have any "exclude" lines in the yum configuration (such as the ones provided in altered cpanel distributions)
Try using this
yum install php-mysql
systemctl restart httpd
You can search package like
yum search php
Pick the ones you need and install them like this:
yum -y install php-mysqlnd php-pdo
In the next step I will install some common PHP modules that are required by CMS Systems like Wordpress, Joomla, and Drupal:
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel
https://webtatic.com/packages/php56/
I believe the driver is php56w-mysql so yum install php56w-mysql should do the job.

Ambari repository on CentOS 7

We are trying to install Ambari server following the manual Install Ambari 2.2.1 from Public Repositories.
When we tried to install the Ambari server with the command yum install ambari-server it returns that it is nothing to do.
The ambari.repo is:
#VERSION_NUMBER=2.2.1.0-161
[Updates-ambari-2.2.1.0]
name=ambari-2.2.1.0 - Updates
baseurl=http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
Someone can help us?
The problem was that the OS installed was of 32 bits and it is obligatory install the 64 bits OS.
Just clear the yum cache and then try again it will be solved your problem.
yum clean all
yum install ambari-server
Note: Make sure you kept the ambari.repo file in /etc/yum.repos.d/ location
This happens in case:
Package (ambari-server) is already installed
Repolist can't find the package (ambari-server).
First run yum list all if it's not listing package then run
yum clean all
Again run yum list all
If it's not listing your package you need to add .repo file for the same in /etc/yum.repos.d