I'm using yum as a package manager since I'm on Centos. I'm working with kernel header and devel packages, and noticed some peculiar behavior that I haven't been able to find information out via googling:
Currently I have headers and devel packages installed for the current kernel, however whenever I execute a yum command to install these locally (I have the RPM's), I get differing behavior:
(note: I'm working on automating the installation, so I'm aware that doing this on my current environment is worthless. I'm just looking for some understanding of this inconsistency)
[root#host mydir]# rpm -qa | grep kernel
kernel-headers-2.6.32-573.7.1.el6.x86_64
kernel-2.6.32-504.el6.x86_64
kernel-2.6.32-573.7.1.el6.x86_64
kernel-devel-2.6.32-573.7.1.el6.x86_64
libreport-plugin-kerneloops-2.0.9-25.el6.centos.x86_64
kernel-2.6.32-573.3.1.el6.x86_64
kernel-firmware-2.6.32-573.22.1.el6.noarch
abrt-addon-kerneloops-2.0.8-34.el6.centos.x86_64
dracut-kernel-004-388.el6.noarch
The two packages in question are installed (devel and headers for kernel-2.6.32-573.7.1.el6.x86_64
[root#host mydir]# ver=`uname -r`
Attempt to install headers:
[root#host mydir]# yum install kernel-header-${ver}
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Nopackage kernel-header-2.6.32-573.7.1.el6.x86_64 available.
Error: Nothing to do
[root#host mydir]# echo $?
1
Exits with an error, however when I try the same thing for the devel package...
[root#host mydir]# yum install kernel-devel-${ver}
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Nothing to do
[root#host mydir]# echo $?
0
Simple : No old packages are available with yum. The only available "kernel-headers package" is the latest CentOS 6.8 update = kernel-headers-2.6.32-642.1.1.el6
Besides that, the kernel-headers ( /usr/include/* ) do not really have to follow the kernel version : They are meant for building applications. The two packages which must have a match are kernel, kernel-devel.
Updates http://mirror.centos.org/centos/6.8/updates/
Release http://mirror.centos.org/centos/6.8/os/
Related
I am trying to install phpAdmin on a Centos LAMP server and keep getting stuck at the same point which is a repository error. I am noob at linux and don't see what I am missing. I have been using the following walk through from liquidweb
Here is the error message I am receiving.
"[vadmin#centos-django ~]$ cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[vadmin#centos-django ~]$ sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
[sudo] password for vadmin:
Retrieving http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
warning: /var/tmp/rpm-tmp.JKxeOc: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-11 ################################# [ 50%]
Cleaning up / removing...
2:epel-release-7-9 ################################# [100%]
[vadmin#centos-django ~]$ yum -y update
Loaded plugins: fastestmirror, langpacks
You need to be root to perform this command.
[vadmin#centos-django ~]$ sudo yum -y update
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
One of the configured repositories failed (Unknown),
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=<repoid> ...
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 <repoid>
or
subscription-manager repos --disable=<repoid>
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=<repoid>.skip_if_unavailable=true
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again"
I am trying to install unixODBC-2.2.14-11.el6.x86_64.rpm on redhat 6.3. It gives me the following output:
[root#localhost khan]# yum install unixODBC-2.2.14-11.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository InstallMedia is listed more than once in the configuration
Setting up Install Process
Examining unixODBC-2.2.14-11.el6.x86_64.rpm: unixODBC-2.2.14-11.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
But when I try to query it by #rpm -q unixODBC-2.2.14-11.el6.x86_64.rpm,
it gives the output as:
package unixODBC-2.2.14-11.el6.x86_64.rpm is not installed
You are misusing the rpm command. With the -q option, rpm receives a package name, not a file name. Drop the .rpm from the end, and you should be OK:
$ rpm -q unixODBC-2.2.14-11.el6.x86_64
When I execute the yum search the mysql-libs like this:
$sudo yum search mysql-libs
Loaded plugins: branch, downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
========================================================================== N/S Matched: mysql-libs ==========================================================================
mysql-libs.x86_64 : The shared libraries required for MySQL clients
Name and summary matches only, use "search all" for everything.
But when I execute the install command it says "nothing to do "
$sudo yum install mysql-libs
Loaded plugins: branch, downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Does anybody ever meet the seem problem and fixed it?
thanks.
Try with rpm command,
# rpm -qa | grep mysql-libs
or you need to install repo and check it.
https://dev.mysql.com/downloads/repo/yum/
http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
I have issue with update my kernel on Centos.
I'll try yo update the system and got the next error :
Packages skipped because of dependency problems:
kernel-2.6.32-573.1.1.el6.x86_64 from CentOS6-Updates-x86_64
Can somebody help me? what I must do to update it? It doesn't help me:
yum clean all
If this important I used CentOS release 6.6 (Final)
Thanks
My repolist :
# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* elrepo: repos.lax-noc.com
repo id repo name status
CentOS-6.6-x86_64-0 CentOS-6.6-x86_64-0 6,479
CentOS-6.x-x86_64-Base CentOS-6.x-x86_64-Base 6,518
CentOS6-Updates-x86_64 CentOS6-Updates-x86_64 161
EPEL-6Server-x86_64 EPEL-6Server-x86_64 11,641
repolist: 25,674
Try cleaning the dbcache (not the local cache) by using the following commands:
yum clean dbcache
yum update
Hello I am using centos 6.4 64bit. i am trying to install teamviewer. i've downloaded teamviewer rpm from teamviewer site. when i run
rpm -ivh teamviewer_10.0.37742.i686.rpm
it shows me failed dependencies error so i start to install dependencies by using yum but some dependencies unable to install which are
warning: teamviewer_10.0.37742.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 72db573c: NOKEY
error: Failed dependencies:
libfontconfig.so.1 is needed by teamviewer-10.0.37742-0.i686
libjpeg.so.62 is needed by teamviewer-10.0.37742-0.i686
libXinerama.so.1 is needed by teamviewer-10.0.37742-0.i686
libXrandr.so.2 is needed by teamviewer-10.0.37742-0.i686
libXrender.so.1 is needed by teamviewer-10.0.37742-0.i686
when i run yum install libfontconfig.so.1
i got this error
warning: teamviewer_10.0.37742.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 72db573c: NOKEY
error: Failed dependencies:
libfontconfig.so.1 is needed by teamviewer-10.0.37742-0.i686
libjpeg.so.62 is needed by teamviewer-10.0.37742-0.i686
libXinerama.so.1 is needed by teamviewer-10.0.37742-0.i686
libXrandr.so.2 is needed by teamviewer-10.0.37742-0.i686
libXrender.so.1 is needed by teamviewer-10.0.37742-0.i686
Loaded plugins: fastestmirror, protectbase, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: ftp.cuhk.edu.hk
* extras: centos.excellmedia.net
* linuxtech-release: pkgrepo.linuxtech.net
* updates: centos.excellmedia.net
* webtatic: uk.repo.webtatic.com
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fontconfig.i686 0:2.8.0-5.el6 will be installed
--> Processing Dependency: libexpat.so.1 for package: fontconfig-2.8.0-5.el6.i686
--> Running transaction check
---> Package expat.i686 0:2.0.1-11.el6_2 will be installed
--> Finished Dependency Resolution
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
1. You have an upgrade for fontconfig which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of fontconfig of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude fontconfig.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of fontconfig installed, but
yum can only see an upgrade for one of those arcitectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
3. You have duplicate versions of fontconfig installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Protected multilib versions: fontconfig-2.8.0-5.el6.i686 != fontconfig-2.8.0-3.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
so what should i do i've tried many things but didn't success?
On
# uname -a
Linux centos6.6.6.71092 2.6.32-042stab108.1 #1 SMP Thu Apr 23 19:17:11 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
This works for me without errors:
# wget http://www.teamviewer.com/download/teamviewer_linux.rpm
# yum install teamviewer_linux.rpm
If you get missing public key error, you can download public key and
import it using the following command continue
TeamViewer for Linux is compiled on x86 (i686) platform, so you must install x86-based dependency packages, which you can find at rpmfind.net.
TeamViewer for Linux (OpenSuse, CentOS etc..) is compiled on x86 platform, so you have to install x86-based dependency packages