Useful Snippets


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

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at

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:
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 <>
URL         :
Summary     : An open source SSH client applications


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

Comments 1