Has anyone figured out how to install `moreutils` on Centos8? - centos8

Has anyone figured out how to install moreutils on Centos8?
I'm getting this error:
[root#default-bento-centos-8 vagrant]# dnf install moreutils
Last metadata expiration check: 0:19:17 ago on Tue 17 Aug 2021 08:27:50 PM UTC.
Error:
Problem: conflicting requests
- nothing provides perl(IPC::Run) needed by moreutils-0.63-1.el8.x86_64
- nothing provides perl-IPC-Run needed by moreutils-0.63-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root#default-bento-centos-8 vagrant]# dnf -y --enablerepo=PowerTools install moreutils
Error: Unknown repo: 'PowerTools'
I have both the epel-release and perl packages installed.

The enable repo argument is case sensitive and powertools needs to be fully lower cased as opposed to Pascal Cased.
This works:
dnf install epel-release -y
dnf --enablerepo=powertools install moreutils -y

Related

OpenVSwitch won't install on my Alma Linux server

When I am attempting to install OpenVSwitch from the RPM generated from the documentation, it spews out an error, the following. I have python2 installed, python3, and python3.6. I generally do not know why it is showing this, but my 9:40 at night brain can't exactly comprehend much.
[root#Alma-85-amd64-base x86_64]# yum install python2
Last metadata expiration check: 1:15:52 ago on Tue 08 Mar 2022 02:20:48 AM CET.
Package python2-2.7.18-7.module_el8.5.0+2579+77770ab7.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root#Alma-85-amd64-base x86_64]# rpm -i openvswitch-2.17.0-1.el8.x86_64.rpm
error: Failed dependencies:
python >= 2.7 is needed by openvswitch-2.17.0-1.el8.x86_64
[root#Alma-85-amd64-base x86_64]#
Alright, here's an update. I could not get OpenVSwitch to work on any version of RHEL 8, but it did work on RHEL 7.

Unable to install required package (rabbitmq-server) before Travis CI build

Since today I experience the following issue with Travis CI: the required package specified in before_install section of .travis.yml:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq rabbitmq-server
cannot be installed, breaking the build.
Response as shown Travis console log:
$ sudo apt-get update -qq
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
$ sudo apt-get install -qq rabbitmq-server
E: Unable to correct problems, you have held broken packages.
The command "sudo apt-get install -qq rabbitmq-server" failed and exited with 100 during .
Your build has been stopped.
How would I overcome this problem? I have tried to replicate the issue locally, but it seems to be not reproducible.
I searched Google with this search string - "failed and exited with 100" apt install - this is the first hit:
https://github.com/travis-ci/travis-ci/issues/7998

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

Amazon web services and ubuntu 10.04 ec2 instance

I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the command sudo apt-get install sun-java6-jdk or sudo apt-get install tomcat6 admin or sudo apt-get install ec2-api-tools
Package ec2-api-tools is not available, but is referred to by another package.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ec2-api-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ec2-api-tools has no installation candidate
Another option is to add their official repository to apt - this will provide you up to date AWS tools:
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y
This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual
sudo apt-get update
sudo apt-get upgrade -y
Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner
and then:
sudo apt-get update
sudo apt-get install sun-java6-jdk
ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).
I am a bit confused, if you just want to install Java and Tomcat, why are you also trying to install the ec2 tools?
In any case, I also want to mention the free BitNami Cloud Tools installer (disclaimer: I am one of the developers). It includes the JDK and all EC2-related tools. We keep it fairly up-to-date and can run as a regular user.