NAV BAR



CREATING LOCAL REPO ON LINUX 8

1.Create a directory for repository

                   mkdir  –p /root/MYREPO

 2.  Mount the Linux 8 iso disk and Copy the iso content to the directory create for repository.

   [root@pdbsolutions root]# cd  /mnt/RHEL8/

   [root@pdbsolutions RHEL8]# cp  –arv  *  / root/MYREPO/

3. Rename the existing default .repo files available at /etc/yum.repos.d/

 [root@pdbsolutions yu.repos.d]#mv  oracle-linux-ol8. repo oracle-linux-ol8. repo.back

 [root@pdbsolutions yu.repos.d]#mv  ol8_UEKR6 .repo ol8_UEKR6 .repo.back

4. Create local repo file at /etc/yum.repos.d/

[root@pdbsolutions repodata]# vi /etc/yum.repos.d/myrepo.repo

               [ol8_baseos]

               name=Oracle Linux 8 BaseOS

               baseurl=file:///root/MYREPO

               gpgcheck=0

               enabled=1

 

               [ol8_appstream]

               name=Oracle Linux 8 Application Stream

               baseurl=file:///root/MYREPO

               gpgcheck=0

                    enabled=1

5. Run yum clean all to clean all the cached packages from the enabled repository

       [root@iafbadb1 yum.repos.d]#yum clean all

6. Create a repomd (xml-based rpm metadata) repository as below

        [root@iafbadb1 yum.repos.d]# createrepo -v /root/MYREPO/

7. Now run yum repolist  to Lists all enabled repositories.

        [root@iafbadb1 yum.repos.d]#yum repolist

No comments:

Post a Comment

CREATION OF PLUGGABLE DATABASE USING DBCA 19c We can create only one pluggable database during the installation of oracle database for c...