sudo yum downgrade ./kernel-devel-3.10.0-327.el7.x86_64.rpm
Testado no CentOS 7.4
Eu uso o wget baixando o kernel-devel
, então eu quero instalá-lo, mas parece que foi instalado por yum
:
$ rpm -i kernel-devel-3.10.0-327.el7.x86_64.rpm
warning: kernel-devel-3.10.0-327.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[echou@localhost kernel]$ sudo rpm -i kernel-devel-3.10.0-327.el7.x86_64.rpm
[sudo] password for echou:
warning: kernel-devel-3.10.0-327.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
package kernel-devel-3.10.0-693.11.6.el7.x86_64 (which is newer than kernel-devel-3.10.0-327.el7.x86_64) is already installed
Então, como fazer o downgrade?
EDITAR
Eu tentei usar kernel-devel-uname-r == $(uname -r)
para especial na versão:
$ sudo yum install "kernel-devel-uname-r == $(uname -r)"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.cuhk.edu.hk
* epel: ftp.cuhk.edu.hk
* extras: ftp.cuhk.edu.hk
* updates: ftp.cuhk.edu.hk
No package kernel-devel-uname-r == 3.10.0-327.el7.x86_64 available.
Error: Nothing to do
Mas também falhou.
sudo yum downgrade ./kernel-devel-3.10.0-327.el7.x86_64.rpm
Testado no CentOS 7.4
Use o yum para remover o mais novo kernel-devel
:
yum remove kernel-devel-3.10.0-327.el7.x86_64.rpm
Então você pode usar rpm
para instalá-lo:
rpm -i kernel-devel-3.10.0-327.el7.x86_64.rpm