Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

RSS Latest posts from my personal blog


Most viewed posts


Subscribe to RSS feed


Find out what package some command belongs to on CentOS 6

Stanislav KhromovStanislav Khromov

Very interesting command that shows you which package a specific command belongs to.

Example (checking the ssh command):

rpm -qif `which ssh`

Name        : openssh-clients              Relocations: (not relocatable)
Version     : 5.3p1                             Vendor: CentOS
Release     : 84.1.el6                      Build Date: Fri Feb 22 04:51:49 2013
Install Date: Wed May 22 02:30:06 2013         Build Host: c6b9.bsys.dev.centos.org
Group       : Applications/Internet         Source RPM: openssh-5.3p1-84.1.el6.src.rpm
Size        : 1049931                          License: BSD
Signature   : RSA/SHA1, Sat Feb 23 18:42:22 2013, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.openssh.com/portable.html
Summary     : An open source SSH client applications

Source

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
LinkedIn
Twitter
WordPress.org Profile
Visit my other blog

Comments 1