Ambari repository on CentOS 7 - ambari

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

Related

Yum install graphviz on RHEL 7 fails with 'No package graphviz available.'

I am trying to install graphviz on my RHEL VM. when I run
$sudo yum install graphviz
I get this:
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package graphviz available.
Error: Nothing to do
I later found out that I get this same problem with all packages.
I have tried several solutions I have found online such as:
saving the .repo file found here (this link will download the file)
then running
#from dir containing graphviz-rhel.repo
$sudo yum-config-manager --add-repo graphviz-rhel.repo
the output was
This system is not registered with an entitlement server. You can use subscription-manager to register.
adding repo from: graphviz-rhel.repo
grabbing file graphviz-rhel.repo to /etc/yum.repos.d/graphviz-rhel.repo
repo saved to /etc/yum.repos.d/graphviz-rhel.repo
Then I ran
$sudo yum-config-manager --enable graphviz-rhel
This gives no output and $yum-config-manager list all does not list anything related to graphviz as a repo (enabled or disabled)
I tried the solution here: failed to install 'graphviz*' packages with yum command on my RHEL server
except I found the rpm file here
When I ran the rpm command I got an error because I was missing a couple dozen dependencies so I dont think following this solution for all of them is a reasonable solution.
If someone can either inform me why one of these didn't work or let me know how to accomplish my goal of getting yum install <package> to work I would greatly appreciate it.
As posted in the comments, in order to utilize yum on a RHEL system you need an active subscription

Unable to install latest stable Release of Redis on CentOS 7

I followed below steps to install Redis on CentOS. But Redis 3.2.x version got downloaded, I want more recent version (i.e 4.0.11 or 5.0.x) to be downloaded.
I need steps how to upgrade the Redis current installation? I used below steps while installation
We can use yum to install EPEL:
sudo yum install epel-release
As soon as we finish installing EPEL, we can use yum once again to install Redis:
sudo yum install redis
After a few minutes this installation will be completed and then you can start the Redis service:
sudo systemctl start redis.service
There is always the chance for Redis to start on boot, all you have to do is enable it through the enable command:
sudo systemctl enable redis
If you want to check Redis`s status you should run the following:
sudo systemctl status redis.service
I have found the Remi repository keeps up with the latest binaries. While you can add them to your repos (see https://rpms.remirepo.net), you can just point yum directly at the rpm file there as well (e.g. yum install -y http://rpms.remirepo.net/enterprise/7/remi/x86_64/redis-5.0.0-1.el7.remi.x86_64.rpm).
Edit: Regarding an upgrade, I assumed you don't have any data at this point, so I would suggest a quick yum uninstall redis before installing the latest. If you really need to upgrade with data and all, you need to just be sure to preserve your persistent data files and replace them before starting the new version.

Terminal command in fedora

What does the yum and -y means
yum install httpd -y
new to fedora. please guide me.
the above code will install Apache server in fedora
yum is a software package manager that installs, updates, and removes packages on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. yum makes it easier to maintain groups of machines without having to manually update each one using rpm.
-y means that we did't want to gave yes to install any package (here httpd)
httpd installs apache web server
Thanks for Support and advice

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.