Can anyone please explain how Yum command works , in context to
1) how it fetches variables from .repo file like baseurl, gpgcheck, enabled etc. ?
2) how it resolves the metalink url?
3) How it determines the values of variables like $basearch , $releasever etc.?
Also, how can I setup my own yum repository, for example, a user-created application that I could install on system using Yum command?
Regards,
LuckyDudeThakur
----------------------------------------------------------------
https://twitter.com/@LuckyDudeThakur
https://www.linkedin.com/in/luckydudethakur
A yum repository is a collection of RPM packages with metadata that is readable by the yum command line tool. Having a yum repository allows you to perform package install, removal, upgrade, and other operations on individual packages or groups of packages
The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager.
YUM allows for automatic updates and package and dependency management on RPM-based distributions.
YUM works with software repositories (collections of packages), which can be accessed locallyor over a network connection
yum is the primary tool for getting, installing, deleting, querying, and managing Linux RPM software packages from software repositories, as well as other third-party repositories
For installing a application using yum
yum install application name
For Deleting a application name using yum
yum remove application name
For getting details of a Application
yum info application name
You can have a detail look into creating repo by checking the following link
https://www.slashroot.in/yum-repository-and-package-management-complete-tutorial
To create your own yum repo you will need to install the package "createrepo"
Then just make a directory, put some rpm files in it, get into the dir and just type: "createrepo ."
This will make this dir a valid yum repository. If this dir is available through a webserver then you can create a .repo file the following way: baseurl=https://myserver/myrepo
You can also use it as a file repo this way: baseurl=file:///opt/myrepo
If you are going to do this for a company I would also suggest you generate your own gpgkey for custom packages and sign them (you'll need gpg and the package rpm-sign for that).
otherwise specifiy in you .repo file: gpgcheck=0
A yum repository is a collection of RPM packages with metadata that is readable by the yum command line tool. Having a yum repository allows you to perform package install, removal, upgrade, and other operations on individual packages or groups of packages
The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager.
YUM allows for automatic updates and package and dependency management on RPM-based distributions.
YUM works with software repositories (collections of packages), which can be accessed locallyor over a network connection
yum is the primary tool for getting, installing, deleting, querying, and managing Linux RPM software packages from software repositories, as well as other third-party repositories
For installing a application using yum
yum install application name
For Deleting a application name using yum
yum remove application name
For getting details of a Application
yum info application name
You can have a detail look into creating repo by checking the following link
https://www.slashroot.in/yum-repository-and-package-management-complete-tutorial
@rajeshlukose
Thanks for the description. The provided article helped in getting a better understanding of working of YUM.
Regards,
LuckyDudeThakur
----------------------------------------------------------------
https://twitter.com/@LuckyDudeThakur
https://www.linkedin.com/in/luckydudethakur
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.