{"id":1213,"date":"2016-01-25T14:44:51","date_gmt":"2016-01-25T13:44:51","guid":{"rendered":"https:\/\/elkano.org\/blog\/?p=1213"},"modified":"2016-01-25T14:46:05","modified_gmt":"2016-01-25T13:46:05","slug":"debian-ubuntu-redhat-centos-commands","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/debian-ubuntu-redhat-centos-commands\/","title":{"rendered":"Debian-ubuntu vs Redhat-CentOS commands"},"content":{"rendered":"<p>If you are used to work with Debian based distributions as well as RedHat based distributions this post is useful to see what is the counterpart command in both systems:<\/p>\n[table width=&#8221;600&#8243; border=1 colwidth=&#8221;200|200|200&#8243; colalign=&#8221;left|center|center&#8221;]\nCommand Description,Debian,RedHat<br \/>\nSearch package,apt-cache search package,yum search package<br \/>\nLook available packages in the repository,apt-cache show package,yum &#8211;showduplicates list package | expand<br \/>\nInstall specific package version,apt-get install package=x.y.z,yum install package-x.y.z<br \/>\nList files installed by a package, dpkg -L package, rpm -ql package<br \/>\nWhich package has installed the file, dpkg -S \/path\/to\/file, rpm -qf \/path\/to\/file or yum provides \/path\/to\/file<br \/>\nLook if the package is installed, dpkg -l | grep package, rpm -qa | grep package<br \/>\n[\/table]\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are used to work with Debian based distributions as well as RedHat based distributions this post is useful to see what is the counterpart command in both systems: [table width=&#8221;600&#8243; border=1 colwidth=&#8221;200|200|200&#8243; colalign=&#8221;left|center|center&#8221;] Command Description,Debian,RedHat Search package,apt-cache search package,yum search package Look available packages in the repository,apt-cache show package,yum &#8211;showduplicates list package | [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[167,169,171,138,170,168,153,166],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1213"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=1213"}],"version-history":[{"count":14,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1213\/revisions"}],"predecessor-version":[{"id":1227,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1213\/revisions\/1227"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=1213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=1213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=1213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}