{"id":184,"date":"2010-12-17T18:13:44","date_gmt":"2010-12-18T02:13:44","guid":{"rendered":"http:\/\/evanlenz.net\/blog\/?p=184"},"modified":"2010-12-17T18:13:44","modified_gmt":"2010-12-18T02:13:44","slug":"basic-handy-rpm-commands","status":"publish","type":"post","link":"https:\/\/evanlenz.net\/blog\/2010\/12\/17\/basic-handy-rpm-commands\/","title":{"rendered":"Basic, handy rpm commands"},"content":{"rendered":"<p>Even though I&#8217;m comfortable on the command line (and regularly use Cygwin on Windows, and Terminal on the Mac), I haven&#8217;t used Red Hat Linux (or CentOS) since probably 2003, and so I&#8217;m not very familiar with rpm (&#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/RPM_Package_Manager\">RPM Package Manager<\/a>&#8220;, or formerly, &#8220;Red Hat Package Manager&#8221;). I started by looking at the man page, which is a great way to look up a particular command-line argument but is not necessarily the best way to learn just what I need right now. For that, Google often works better, and indeed this <a href=\"http:\/\/www.tfug.org\/helpdesk\/linux\/rpm.html\">Quick Guide<\/a> fit the bill perfectly.<\/p>\n<p>After <a href=\"http:\/\/evanlenz.net\/blog\/2010\/12\/15\/running-and-hosting-marklogic-for-free\/\">installing MarkLogic Server on my new EC2 instance<\/a>, I wanted to poke around some. Here are the simple commands that came in handy:<\/p>\n<dl>\n<dt><tt>rpm -i MarkLogic-4.2-1.i686.rpm<\/tt><\/dt>\n<dd>Installs MarkLogic from the RPM package<\/dd>\n<dt><tt>rpm -qa<\/tt><\/dt>\n<dd>Lists all the packages installed on this machine (&#8220;query all&#8221;)<\/dd>\n<dt><tt>\trpm -qa | grep MarkLogic<\/tt><\/dt>\n<dd>Searches for &#8220;MarkLogic&#8221; among that list (revealing its title as &#8220;MarkLogic-4.2-1&#8221;)<\/dd>\n<dt><tt>\trpm -qi MarkLogic-4.2-1<\/tt><\/dt>\n<dd>Shows info about this package (&#8220;query info&#8221;)<\/dd>\n<dt><tt>\trpm -ql MarkLogic-4.2-1<\/tt><\/p>\n<dd>Shows all the files created as a result of installing this package (&#8220;query list&#8221;)<\/dd>\n<\/dt>\n<\/dl>\n<p>Yep, very basic and nothing to write home about. But blogging about it might help me remember. Most Unix commands have a ton of options, many of which I&#8217;ll never need. But it&#8217;s good to be able to remember some of the most common ones and only visit the man page when I need to do something unusual.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even though I&#8217;m comfortable on the command line (and regularly use Cygwin on Windows, and Terminal on the Mac), I haven&#8217;t used Red Hat Linux (or CentOS) since probably 2003, and so I&#8217;m not very familiar with rpm (&#8220;RPM Package Manager&#8220;, or formerly, &#8220;Red Hat Package Manager&#8221;). I started by looking at the man page, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/184"}],"collection":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":4,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}