search

Home  >  Q&A  >  body text

linux - rpm added the wrong package. After removing it, add the correct package. When installing, the version is still the previous one.

After adding the package using rpm


rpm -ivh 包名1

Remove


rpm -e 包名1

Add another version of the package


rpm -ivh 包名2

Install


yum install 软件

Why is the package that has been installed still deleted?

为情所困为情所困2757 days ago1097

reply all(4)I'll reply

  • 学习ing

    学习ing2017-06-24 09:44:46

    Execute the command yum clean allSolved

    reply
    0
  • PHP中文网

    PHP中文网2017-06-24 09:44:46

    Package name 1 and package name 2 are the same package, but the versions are different, and the version of package name 1 is higher than that of package name 2. If there is ` in front of the configuration, what you encountered will happen.
    For example vue:''2.14'
    If vue has a higher version than 2.1.4, when npm install, vue will be updated to the latest existing version!

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-06-24 09:44:46

    You can specify the version to be installed by @‘version number’

    reply
    0
  • 三叔

    三叔2017-06-24 09:44:46

    rpm -eThe package name following is not the package name you installed

    You should firstrpm -qa | grep xxxFind out the installed and unnecessary package names

    Then rpm -e xxx //The xxx here is the package name searched by grep

    reply
    0
  • Cancelreply