1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Install yum with rpm

Posted at

Motivation

$ yum install lsof
-bash: yum: command not found

TL&DR;

  1. Find rpm files from the following link:
    http://mirror.centos.org/centos/6/os/x86_64/Packages/
  2. wget the rpm file
  3. Install via rpm -ivh *.rpm
# wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
# rpm -ivh yum-3.2.29-81.el6.centos.noarch.rpm

Dependencies

# rpm -ivh yum-3.2.29-81.el6.centos.noarch.rpm
error: Failed dependencies:                                                                  
        python-iniparse is needed by yum-3.2.29-81.el6.centos.noarch                
        python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-81.el6.centos.noarch
        yum-metadata-parser >= 1.1.0 is needed by yum-3.2.29-81.el6.centos.noarch                                                                                                                         
        yum-plugin-fastestmirror is needed by yum-3.2.29-81.el6.centos.noarch   

Then find all the rpm file on the link above, and install all of them using wget and rpm.

If they have recursive dependencies, try installing at a time.

# rpm -ivh yum-*.rpm

Enable EPEL

Almost same as above...

# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

Update repository before installing package

# yum check-update
# yum update
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?