Skip to content
Advertisements

Archive for

creating local repository yum install linux

Follow the below procedure

[root@ebs-app-xx-xx u01]# yum repolist

[root@ebs-app-xx-xx u01]# yum list installed | grep createrepo

createrepo.noarch                         0.9.9-28.el7             @anaconda/7.5

[root@ebs-app-xx-xx u01]# createrepo /u01/Packages/

 

[root@ebs-app-xx-xx u01]# cd /etc/yum.repos.d

[root@ebs-app-xx-xx yum.repos.d]# ls -tlr

total 4

-rw-r–r–. 1 root root 358 Nov  4 22:55 redhat.repo

Now, create custom repository

[root@ebs-app-xx-xx yum.repos.d]# cat custom.repo

[customrepo]

name=Custom Repository

baseurl=file:///u01/Packages/

enabled=1

gpgcheck=0

 

you can check how much packages in the repository

 

[root@ebs-app-xx-xx yum.repos.d]# yum repolist

Now, we can install the rpm packages from the repository

 

[root@ebs-app-xx-xx Packages]# yum install tigervnc-1.8.0-5.el7.x86_64.rpm

 

Issue faced :

 

if  repository giving below error message,then your repository is corrupted.

 

Error Downloading Packages:

InstallMedia: [Errno 256] No more mirrors to try.

 

Solution:

Refer

https://access.redhat.com/solutions/203603

 

Advertisements