I'm trying to install vnstat on CentOS 6. I used the command found in the docs 'yum install vnstat' but it shows the below:
[root#m2 ~]# yum install vnstat
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirror.its.dal.ca
* extras: mirror.its.dal.ca
* updates: mirror.its.dal.ca
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 31 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.3 MB 00:03
No package vnstat available.
Error: Nothing to do
Does anyone know how to resolve the No package vnstat available issue?
vnstat is not available in base repository. You first need to enable EPEL (Extra Packages for Enterprise Linux) repository with:
yum install epel-release
After that, yum install vnstat should work.
Related
I have tried some tutorials from internet, like yum install libuuid-devel, but not works.
sh-3.2# yum install libuuid-devel
Failed to set locale, defaulting to C
C5.8-base | 1.1 kB 00:00
C5.8-centosplus | 1.9 kB 00:00
Setting up Install Process
No package libuuid-devel available.
Nothing to do
Then i want to compile uuid from source code, but not found uuid source code location.
I'm unable to install ImageMagick and ImageMagick-devel on a CentOS 8 64bit server. It should be as easy as:
dnf install ImageMagick ImageMagick-devel
When I do that I get:
Last metadata expiration check: 0:02:53 ago on Wed 26 May 2021 11:48:26 AM CEST.
All matches were filtered out by exclude filtering for argument: ImageMagick
All matches were filtered out by exclude filtering for argument: ImageMagick-devel
Error: Unable to find a match: ImageMagick ImageMagick-devel
I have already done:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
Which is installed and enabled. When I look in
dnf repository-packages epel list
no ImageMagick package is listed.
How can I fix this and use dnf to install ImageMagick and ImageMagick-devel?
My repolist is:
appstream: CentOS Linux 8 - AppStream
baseos: CentOS Linux 8 - BaseOS
epel: Extra Packages for Enterprise Linux 8 - x86_64
epel-debuginfo: Extra Packages for Enterprise Linux 8 - x86_64 - Debug
epel-modular: Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-source: Extra Packages for Enterprise Linux 8 - x86_64 - Source
extras: CentOS Linux 8 - Extras
litespeed: LiteSpeed Tech Repository for CentOS 8 - x86_64
litespeed-update: LiteSpeed Tech Update Repository for CentOS 8 - x86_64
powertools: CentOS Linux 8 - PowerTools
remi-modular: Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe: Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
yarn: Yarn Repository
Output of dnf repository-packages epel list | grep Image
OpenImageIO.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-devel.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-iv.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-utils.x86_64 2.1.20.0-1.el8 epel
libAfterImage.x86_64 1.20-22.el8 epel
libAfterImage-apps.x86_64 1.20-22.el8 epel
libAfterImage-devel.x86_64 1.20-22.el8 epel
perl-GD-SecurityImage.noarch 1.75-4.el8 epel
perl-Image-Base.noarch 1.17-15.el8 epel
perl-Image-ExifTool.noarch 12.16-3.el8 epel
perl-Image-Info.noarch 1.41-8.el8 epel
perl-Image-Size.noarch 3.300-16.el8 epel
perl-Image-Xbm.noarch 1.10-11.el8 epel
perl-Image-Xpm.noarch 1.13-10.el8 epel
Output of dnf repository-packages epel list | grep image
freeimage.x86_64 3.17.0-4.el8 epel
freeimage-devel.x86_64 3.17.0-4.el8 epel
freeimage-plus.x86_64 3.17.0-4.el8 epel
freeimage-plus-devel.x86_64 3.17.0-4.el8 epel
kf5-kimageformats.x86_64 5.68.0-1.el8 epel
kiwi-systemdeps-disk-images.x86_64 9.23.34-1.el8 epel
kiwi-systemdeps-image-validation.x86_64 9.23.34-1.el8 epel
libimagequant.x86_64 2.12.5-1.el8 epel
libimagequant-devel.x86_64 2.12.5-1.el8 epel
python3-openimageio.x86_64 2.1.20.0-1.el8 epel
qt5-qtimageformats-doc.noarch 5.12.3-1.el8 epel
root-graf-asimage.x86_64 6.22.08-1.el8 epel
It's kinda lame in CentOS 8 how by default, many needed repos are not enabled by default and packages are spread out now among the different repos making life more of a pain in the a$$ instead of easier..
ImageMagick packages are in the epel repo
[root#test35 map]# repoquery -i ImageMagick-devel
Last metadata expiration check: 0:23:13 ago on Wed 26 May 2021 04:52:14 AM PDT.
Name : ImageMagick-devel
Version : 6.9.10.86
Release : 1.el8
Architecture : x86_64
Size : 126 k
Source : ImageMagick-6.9.10.86-1.el8.src.rpm
Repository : epel
Summary : Library links and header files for ImageMagick app development
URL : http://www.imagemagick.org/
License : ImageMagick
Description : ImageMagick-devel contains the library links and header files
: you'll need to develop ImageMagick applications. ImageMagick is
: an image manipulation program.
:
: If you want to create applications that will use ImageMagick code
: or APIs, you need to install ImageMagick-devel as well as
: ImageMagick. You do not need to install it if you just want to
: use ImageMagick, however.
To enable popular repos containing many needed packages for a typical server, run the following
yum install epel-release javapackages-tools
yum config-manager --set-enabled powertools
rebuild yum or dnf:
yum clean all
yum makecache
yum repolist
[root#localhost ~]# yum repolist
repo id repo name
appstream CentOS Linux 8 - AppStream
baseos CentOS Linux 8 - BaseOS
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Linux 8 - Extras
powertools CentOS Linux 8 - PowerTools
List of rpms in epel where ImageMagick-devel is located:
yum repo-pkgs epel list
[root#test35 map]# dnf clean all
49 files removed
[root#test35 map]# dnf makecache
CentOS Linux 8 - AppStream 3.9 MB/s | 6.3 MB 00:01
CentOS Linux 8 - BaseOS 1.2 MB/s | 2.3 MB 00:01
CentOS Linux 8 - Extras 27 kB/s | 9.6 kB 00:00
CentOS Linux 8 - PowerTools 1.6 MB/s | 2.0 MB 00:01
Extra Packages for Enterprise Linux Modular 8 - 453 kB/s | 610 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 4.2 MB/s | 9.4 MB 00:02
Last metadata expiration check: 0:00:01 ago on Wed 26 May 2021 06:09:19 AM PDT.
Metadata cache created.
[root#test35 map]# dnf repository-packages epel list|grep ImageMagick
ImageMagick.x86_64 6.9.10.86-1.el8 epel
ImageMagick-c++.x86_64 6.9.10.86-1.el8 epel
ImageMagick-c++-devel.x86_64 6.9.10.86-1.el8 epel
ImageMagick-devel.x86_64 6.9.10.86-1.el8 epel
ImageMagick-doc.x86_64 6.9.10.86-1.el8 epel
ImageMagick-libs.x86_64 6.9.10.86-1.el8 epel
ImageMagick-perl.x86_64 6.9.10.86-1.el8
I'm trying to update / upgrade CentOS 6.5 version to 6.7 or latest 6.x but getting the following error.
In the snapshot below, I'm showing truncated output and mainly showing the error log while running YUM update or upgrade command. For full log file, please see log .txt file here: YUM update or upgrade Transaction Check Error norach conflicts. PS: Under Limited Download, click on "Slow download" and open the log file in some notepad++ type text editor.
What should I do to sucessfully upgrade/update the CentOS version. Thanks.
[root#server01 giga]# yum clean all; echo $?
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning repos: base epel extras google-chrome puppetlabs-deps puppetlabs-products release.update supplemental.release supplemental.release.update updates
Cleaning up Everything
Cleaning up list of fastest mirrors
0
[root#server01 giga]#
[root#server01 giga]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root#server01 giga]#
[root#server01 giga]#
[root#server01 giga]#
[root#server01 giga]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
epel/metalink | 12 kB 00:00
* base: ftp.usf.edu
* epel: mirror.cogentco.com
* extras: mirrors.advancedhosters.com
* updates: mirror.team-cymru.org
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:03
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 34 kB 00:00
google-chrome | 951 B 00:00
google-chrome/primary | 1.9 kB 00:00
google-chrome 3/3
puppetlabs-deps | 2.5 kB 00:00
puppetlabs-deps/primary_db | 27 kB 00:00
puppetlabs-products | 2.5 kB 00:00
puppetlabs-products/primary_db | 166 kB 00:00
release.update | 4.0 kB 00:00
release.update/primary_db | 4.4 MB 00:00
supplemental.release | 2.9 kB 00:00
supplemental.release/primary_db | 98 kB 00:00
supplemental.release.update | 2.9 kB 00:00
supplemental.release.update/primary_db | 2.0 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.9 MB 00:01
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package audit.x86_64 0:2.2-2.el6 will be updated
---> Package audit.x86_64 0:2.3.7-5.el6 will be an update
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
---> Package audit-libs.x86_64 0:2.3.7-5.el6 will be an update
---> Package augeas-libs.x86_64 0:1.0.0-5.el6_5.1 will be updated
---> Package augeas-libs.x86_64 0:1.0.0-10.el6 will be an update
---> Package authconfig.x86_64 0:6.1.12-13.el6 will be updated
---> Package authconfig.x86_64 0:6.1.12-23.el6 will be an update
---> Package b43-openfwwf.noarch 0:5.2-4.el6 will be updated
---> Package b43-openfwwf.noarch 0:5.2-10.el6 will be an update
---> Package bash.x86_64 0:4.1.2-15.el6_4 will be updated
---> Package bash.x86_64 0:4.1.2-33.el6_7.1 will be an update
---> Package bfa-firmware.noarch 0:3.2.21.1-2.el6 will be updated
---> Package bfa-firmware.noarch 0:3.2.23.0-2.el6 will be an update
---> Package pciutils.x86_64 0:3.1.10-4.el6 will be installed
---> Package virt-what.x86_64 0:1.11-1.2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Installing:
kernel x86_64 2.6.32-573.18.1.el6 updates 30 M
kernel-devel x86_64 2.6.32-573.18.1.el6 updates 10 M
Updating:
audit x86_64 2.3.7-5.el6 base 208 k
audit-libs x86_64 2.3.7-5.el6 base 71 k
augeas-libs x86_64 1.0.0-10.el6 base 314 k
authconfig x86_64 6.1.12-23.el6 base 377 k
b43-openfwwf noarch 5.2-10.el6 base 19 k
bash x86_64 4.1.2-33.el6_7.1 updates 908 k
bfa-firmware noarch 3.2.23.0-2.el6 base 3.2 M
(129/131): yum-3.2.29-69.el6.centos.noarch.rpm | 1.0 MB 00:02
(130/131): yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm | 31 kB 00:00
(131/131): yum-utils-1.1.30-30.el6.noarch.rpm | 110 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 146 MB 01:43
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/bin/extlookup2hiera from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/scope.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera_puppet.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_array.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_hash.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_include.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
Error Summary
-------------
[root#server01 giga]#
[root#server01 giga]# yum -y upgrade
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: ftp.usf.edu
* epel: mirror.cogentco.com
* extras: mirrors.advancedhosters.com
* updates: mirror.team-cymru.org
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package audit.x86_64 0:2.2-2.el6 will be updated
---> Package audit.x86_64 0:2.3.7-5.el6 will be an update
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
virt-what x86_64 1.11-1.2.el6 base 24 k
Transaction Summary
==================================================================================================================================================================
Install 5 Package(s)
Upgrade 126 Package(s)
Total size: 146 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/bin/extlookup2hiera from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera/scope.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/hiera_puppet.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_array.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_hash.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_include.rb from install of puppet-3.8.6-1.el6.noarch conflicts with file from package hiera-puppet-1.0.0-1.el6.noarch
Error Summary
-------------
[root#server01 giga]#
Solution for upgrading CentOS 6.5 to 6.6/6.7 was to first: Found this cool site for the hint http://www.if-not-true-then-false.com/2011/upgrade-centos-6/ and tried the following.
I tried to first remove puppet and yum update, it still failed with the same error. The issue was with hiera-puppet. With latest puppet (3.x.x which is what you'll get if you update just puppet), hiera-puppet comes for free OR you can say it's not required to be installed as a separate step.
So, solution to upgrade from CentOS 6.5/6.6 to 6.7 (Final) was:
# yum -y remove puppet hiera-puppet
# yum -y clean all
# yum -y update glibc* yum* rpm* python*
# yum -y update
# cat /etc/redhat-release; ## This will now give: CentOS release 6.7 (Final)
I need to install perl-Expect, so, I executed:
# yum install -y perl-Expect
Error: Package: perl-Expect-1.21-14.el7.noarch (epel)
Requires: perl(IO::Pty) >= 1.03
Error: Package: perl-Expect-1.21-14.el7.noarch (epel)
Requires: perl(IO::Tty)
Okay, I need to install perl(IO::Pty)
I launched
# yum install -y "perl(IO::Pty)"
No package perl(IO::Pty) available.
Error: Nothing to do
So, how to install all required perl modules to the RHEL?
The perl-IO-Tty package is provided by the rhel-7-server-optional-rpms
repository. It looks like the Optional repository is not enabled on your system. This Stack Overflow answer explains how to do so:
subscription-manager repos --enable rhel-7-server-optional-rpms
You could try searching for the each piece of the package with: sudo yum search perl | grep IO | grep Pty
return: perl-IO-Pty-Easy.noarch : Easy interface to IO::Pty
But, I used your code, minus -y in CentOS 7, and found the following:
$ sudo yum install "perl(IO::Pty)"
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package perl-IO-Tty.x86_64 0:1.10-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================
Installing:
perl-IO-Tty x86_64 1.10-11.el7 CentOS-Cache 42 k
Transaction Summary
==============================================================================================================================================================================================
Install 1 Package
Total download size: 42 k
Installed size: 76 k
Is this ok [y/d/N]:
Make sure you have access to the default repositories and they are enabled...
Hope this helps,
Peter
I'm trying to install memcached on Centos 5.4 with:
# yum install memcached
What I get is:
[root#domU-12-31-39-02-75-A8 ~]# yum -y install memcached
Failed to set locale, defaulting to C
rightscale-epel | 951 B 00:00
rpmforge | 1.1 kB 00:00
rpmforge/primary | 3.9 MB 00:01
rpmforge 10767/10767
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.5-1.el5 set to be updated
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: memcached
--> Finished Dependency Resolution
memcached-1.4.5-1.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
Error: Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
How can I install memcached?
Thanks, Alex A.
You need to install it manually or change your yum repo:
wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/testing/RPMS/libevent-1.3b-1.el5.test.x86_64.rpm
wget http://pkgs.repoforge.org/memcached/memcached-1.2.6-1.el3.rf.x86_64.rpm
rpm -ivh libevent-1.3b-1.el5.test.x86_64.rpm
rpm -ivh memcached-1.2.6-1.el3.rf.x86_64.rpm
Note, that this is an older version of memcached