{"id":135,"date":"2008-11-17T01:43:11","date_gmt":"2008-11-17T06:43:11","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=135"},"modified":"2009-04-15T09:50:52","modified_gmt":"2009-04-15T14:50:52","slug":"how-do-i-install-packages-in-centos","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=135","title":{"rendered":"How do I install packages in CentOS?"},"content":{"rendered":"<p>My good friend Dave is moving over to CentOS for his RedHat development (and maybe hosting, wink-wink) platform, and he asks what is the easiest way to add packages on this distro.<\/p>\n<p>Of course, for me, that&#8217;s a bit of a loaded question. What I mean is that I&#8217;m always on a Linux laptop, to GUI redirection via ssh is, well, natural. I mention this because sometimes (don&#8217;t hate me here) I find that GUI tools are easier to use, especially when you can&#8217;t be bothered to reference the man page or just flat-out don&#8217;t know all the flags.<\/p>\n<p>So the first step is to make sure your CentOS installation is updated. For me, I like the simplicity and convenience of the GUI &#8220;Package Updater&#8221;. So, on the desktop, or via an ssh session with X redirection allowed and functioning, type:<\/p>\n<p><code>pup<\/code><\/p>\n<p>&#8230;and you&#8217;ll be on your way to making sure all the repositories are updated, and your packages can be updated in one or two clicks.<\/p>\n<p>Or, if you prefer just a command line option, you can&#8217;t beat <code>yum<\/code>:<\/p>\n<p><code>yum update<\/code><\/p>\n<p>&#8230;of course, you can check the <code>man<\/code> pages for more info, or just type <code>yum<\/code> for all the options.<\/p>\n<p>Next, we need to actually install the packages. Again like almost everything, you can do this via command line with:<\/p>\n<p><code>yum install some-package<\/code><\/p>\n<p>&#8230;.or with the gui tools. Here are some of the gui tools I use all the time:<\/p>\n<p><code>system-config-securitylevel<br \/>\nsystem-config-network<br \/>\nsystem-control-network<br \/>\nsystem-install-packages some-package<br \/>\nsystem-config-services<\/code><\/p>\n<p>One easy way to find all the cool administrative commands is to type &#8220;system-&#8221; (of course, without the quotes) and hit the tab key twice (for bash auto complete) to see all the options. Most are self-explanatory.<\/p>\n<p>Enjoy!<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My good friend Dave is moving over to CentOS for his RedHat development (and maybe hosting, wink-wink) platform, and he asks what is the easiest way to add packages on this distro. Of course, for me, that&#8217;s a bit of&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=135\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[54,10,55,56],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-centos","category-introductory","category-pup","category-yum"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-2b","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":5,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}