YUM Commands
$yum repolist #to list all the repositories
$yumdownloader q* #to download packages with the name start with q
$createrepo test1 #to change the directory to repository, will generate the indexes inside the test1 report with the name of (repodata)
$yum search nmap # to search about the packages in the local repository
$yum remove httpd # to remove package
$yum list or yum list |grep ntfs or yum list |grep httpd # to show all the packages lists that are available including the repo details
$yum provides */htt # if you are not sure about the exact package name, then you can use this command to search in the content , because normal yum search will search in the package name and description but not in the contents that is why we are using yum provides */name
Note: htt anything you are looking for, to search about.
$yum update kernal # will update just the kernel package
$yum update # will compare the current software version installed in my system with the version that available in the internet.
This entry was posted on Sunday, January 12th, 2020 at 8:17 am and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.