repo and configuration YUM script.Ĭonfigure local.repo file – Command – vi local.repo We copied all data in a directory and created a new file and configured the YUM script.Ĭreate a backup directory and move all CentOS_* file In this directory, all data are by default present here. Now our repo location is ready in which repo all packages are available. In disk1 directory, AppStream and BaseOS directory are successfully copied. Verify-in directory disk1 – Command – cd /disk1 When all these things are done, you simply follow this path and copy all new repo in our local machine.Ĭommand – cd/run/media/deepak/CentOS-8-2-2004-x86_64-dvd and press ll (long list) command –Īfter that copy, all AppStream and BaseOS file on your local disk sdb1 Copy AppStream – Command – cp -R AppStream/ /disk1Ĭopy BaseOS – Command – cp -R BaseOS/ /disk1Īfter all this task is done. Like this, in our case, the sdb1 disk is ready to use and mount on /disk1 directory. In this screenshot, device name sr0 and on this device-mounted CentOS image.įirstly, you ready up a 10 GB disk in your machine to copy repos in this disk. On-device (sr0) mounted your CentOS ISO image. When you mount an ISO image in your machine then it should show in your device list. “Mount CentOS ISO image in your Linux machine”įirstly, you browse CentOS ISO images in your machine like this…. Configuring the Local repo in easy 6 steps We will verify that all repo files are stored here. When we create a YUM client manually then we need to know that where are all YUM repo files. If we create local YUM repo in our machine that means we used the YUM command and installed it without internet all the packages in the Linux machine and server. In this blog, we know that how we use YUM without an Internet connection. RPM (RedHat package manager) is the package manager that systems like RHEL and CentOS are based on. YUM is a package management utility for RPM-based distribution. They allow us to easily handle the installation, removal, and inspection of software packages. Package managers are a great feature of every Linux system.
0 Comments
Leave a Reply. |