davfs2 package not found on CENTOS 7.3 x86_64 - centos

I'm having some issues trying to install davfs2 on my CentOS server, I run
yum install davfs2
but I get this:
Loaded plugins: fastestmirror, langpacks, priorities, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 91.197.228.252
* cpanel-addons-production-feed: 91.197.228.252
* base: centos.quelquesmots.fr
* centosplus: centos.mirror.fr.planethoster.net
* extras: centos.quelquesmots.fr
* rpmforge: mirrors.ircam.fr
* updates: centos.quelquesmots.fr
Nothing to do
Not sure but maybe I need add more mirrors to my distro, if it's not possible install davfs2 I'd like to know other alternative for mount webdav routes as folder in CentOS, cadaver is a webdav client but I can't mount folders with it...
thank you guys, have a nice day

You have to enable the EPEL repo in order to install that package:
yum -y install epel-release
yum -y install davfs2
After you're done installing the required packages please disable the epel repo since you are on a cPanel server and this additional repo, at some point might break some package dependencies when cPanel/WHM nightly update is running.
To disable the EPEL repo you can edit /etc/yum.repos.d/epel.repo file and replace enabled=1 with enabled=0

Related

Unbale to install OpenCL in CentOS 7

I'm trying to install OpenCL in a CentOS 7.9 system following instructions here, but yum is unable to find the opencl-headers package as shown in my command-line output below. I tried enabling all repos as instructed here, but no luck. Can anyone help? It seems I need to point yum to the correct registry where it can find the OpenCL files. If that's correct, how do I do that? Thanks.
$ yum install opencl-headers
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirror.metrocast.net
* centos-kernel: mirror.math.princeton.edu
* centos-kernel-experimental: mirror.pit.teraswitch.com
* centosplus: centos.mirror.constant.com
* extras: distro.ibiblio.org
* fasttrack: mirrors.wcupa.edu
* updates: centos.mirror.constant.com
No package opencl-headers available.
opencl-headers package for CentOS 7 is a part of Extra Packages for Enterprise Linux (EPEL) repository. And this repository is not added by default, you need to add it manually. For example, using following command:
yum install epel-release
after that you will be able to install OpenCL headers using yum command
yum install opencl-headers
You only need to install the GPU drivers. Then your device should be detected by clinfo.
To develop code with OpenCL, you need the OpenCL header files. Find these here.

CentOS 7 - Correctly add local package to yum repository

I'm trying to add a local RPM package to yum and yet install it.
To add it to yum repository I run: yum-config-manager --add-repo file:///path/to/local/package.rpm and then yum install package to install it. However, I got this output:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.rrzn.uni-hannover.de
* epel: mirror.23media.de
* extras: centos.mirrors.psw.services
* nux-dextop: mirror.li.nux.ro
* updates: mirror.ratiokontakt.de
harbottle.gitlab.io_harbottle-main_7_x86_64_ | 2.9 kB 00:00:00
file:///path/to/local/package.rpm/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /path/to/local/package.rpm/repodata/repomd.xml"
Trying other mirror.
One of the configured repositories failed (added from: file:/path/to/local/package.x86_64.rpm),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=path_to_local_package.x86_64.rpm ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable path_to_local_package.x86_64.rpm
or
subscription-manager repos --disable=path_to_local_package.x86_64.rpm
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=path_to_local_package.x86_64.rpm.skip_if_unavailable=true
failure: repodata/repomd.xml from path_to_local_package.x86_64.rpm: [Errno 256] No more mirrors to try.
file:/path/to/local/package.x86_64.rpm/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /path/to/local/package.rpm/repodata/repomd.xml"
I also tried to first run: yum-config-manager --add-repo file:///path/to/local/package.rpm and then createrepo --database /path/to/local/ but I got the same output.
Does anybody know how to correctly add a local RPM package to the yum repository?
Thanks!
a repository is different from a rpm package. A repository is a directory containing multiple rpms. So if you just want to install your rpm; you can just
yum install /path/to/package.rpm
if you want to start hosting your own repository; then you need to look into createrepo. For example a local directory can be turned into a repository like this:
mkdir /myrepo
cp package.rpm /myrepo
cd /myrepo
createrepo .
now you can add this directory to yum:
yum-config-manager --add-repo file:///myrepo
now you can also keep adding rpms to this directory (don't forget to run createrepo each time).

No package s3cmd available

I am trying to install an s3cmd rpm on my CentOS 6.x by using the command yum install s3cmd but I am getting the following error output :
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
No package s3cmd available.
Error: Nothing to do
Can somebody provide me URL from where I could manually download s3cmd rpm or any other solution for this?
The s3tools repos are empty now. Please get it from the EPEL repository instead, which I am able to keep maintained.
$ sudo yum --enablerepo=epel install s3cmd
I resolved this problem using following steps :-
cd /etc/yum.repos.d
wget http://s3tools.org/repo/RHEL_6/s3tools.repo
yum install s3cmd
You can also download the package from this url, and then install it manually via command
yum localinstall s3cmd-2.0.2-1.el7.noarch.rpm

Yum Installed Package But I Cant Find It

First off please dont instantly down vote as i am not experienced with building and running distributions via the command line its all foreign to me i am learning.
I have a server running on Centos 6 and i am trying to download and install a library called soundtouch.
here: http://pkgs.org/centos-6/epel-i386/soundtouch-devel-1.5.0-1.el6.i686.rpm.html
and here: http://www.surina.net/soundtouch/
I run
yum install soundtouch
and it runs and seems to install correctly
yum install soundtouch
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.symnds.com
* extras: mirror.cogentco.com
* updates: mirror.rackspace.com
489 packages excluded due to repository priority protections
Setting up Install Process
Package soundtouch-1.5.0-1.el6.x86_64 is obsoleted by libsoundtouch-1.7.1-1.el6.x86_64 which is already installed
Nothing to do
But when i try to run the command
which soundtouch
/usr/bin/which: no soundtouch
or
soundtouch
-bash: soundtouch: command not found
And i check my /usr/bin/ folder and its not there? Can someone please advise where i am going wrong.
Thanks You
You did not install soundtouch package, yum is telling you that this package is obsoleted by libsoundtouch. You can check which files belong to that package:
rpm -ql libsoundtouch

yum install php-bcmath Requires: php-common(x86-64) = 5.3.3-22.el6

Im running centos 6, and I tried to:
yum install php-bcmath, i got this error:
yum install php-bcmath
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirror.de.leaseweb.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.de.leaseweb.net
* updates: mirror.checkdomain.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.3.3-22.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-bcmath-5.3.3-22.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-bcmath-5.3.3-22.el6.x86_64 (base)
Requires: php-common(x86-64) = 5.3.3-22.el6
Installed: php-common-5.4.9-1.el6.remi.x86_64 (#remi-test)
php-common(x86-64) = 5.4.9-1.el6.remi
Available: php-common-5.3.3-22.el6.x86_64 (base)
php-common(x86-64) = 5.3.3-22.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Please help,
Thanks
I found out problem comes from the new PHP version (5.4, 5.4), which installed in a separate repo.
So, we just need to install php-bcmath in the main repo (version 5.3) using command:
yum install php-bcmath --enablerepo=remi
With "remi" is the main repo, you can see it by go to /etc/yum.repos.d then using ll
My Server was running PHP 5.6 and the below command solved my issue
sudo yum -y install php56-bcmath
sudo service httpd restart
It may sound stupid, but it made me lost few hours (yeah, i know..) but do not forget:
sudo service httpd graceful
after:
yum install php-bcmath
You can try (for Centos 6.4)
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php54w
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
yum install php54w-bcmath
(source: http://www.webtatic.com/packages/php54/)
But it may cause another problem about versions.
The simple way is uninstall php 5.4 (or 5.5),
install php 5.3, install php-bcmatch then update to php5.4 (or newer)