Open main menu

Changes

2,082 bytes added ,  15:39, 7 February 2020
no edit summary
YUM, it's not just good eatin', it's also for updating your RedHat (or CentOS) packages.
Here's a [https://access.redhat.com/sitesites/documentationdefault/enfiles/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf cheatsheet] What are the top 20 yummiest commands?http://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/ Sometimes, you want to use a new repository. Like when installing [[Jenkins]] (although it's found in the regular repos, so maybe this isn't the best example for needing a separate repo) from http://pkg.jenkins-ci.org/redhat/<source lang="bash">sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.reposudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.keysudo yum install jenkins</source> ;How do I find what repository provides a given package?:: You use <code>repoquery</code> For example, you have a package called <code>glibc-devel-2.12-1.107.el6_4.4.i686</code><source lang="bash">repoquery -i glibc-USdevel-2.12-1.107.el6_4.4.i686</Red_Hat_Enterprise_Linuxsource><pre>Name : glibc-develVersion : 2.12Release : 1.107.el6_4.4Architecture: i686Size : 976153Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>Group : Development/LibrariesURL : http://sources.redhat.com/glibc/Repository : rhel-6-workstation-rpmsSummary : Object files for development using standard C libraries.Source : glibc-2.12-1.107.el6_4.4.src.rpmDescription :The glibc-devel package contains the object files necessaryfor developing programs which use the standard C libraries (which areused by nearly all programs). If you are developing programs whichwill use the standard C libraries, your system needs to have thesestandard object files available in order to create theexecutables. Install glibc-devel if you are going to develop programs which willuse the standard C libraries.</htmlpre> List the files of a package with <code>repoquery</Deployment_Guidecode><source lang="bash">sudo repoquery -q -l mysql-connector-java</chsource>If you don't have the repoquery command, install yum-yumutils first. == EPEL ==The Extra Packages for Enterprise Linux repository is usually something you want to add to all your RedHat/CentOS boxes.html[[EPEL]]
[[Category:System Administration]]
[[Category:Packages]]