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!

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

RSS Latest posts from my personal blog


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

Full-stack impostor syndrome sufferer & Software Engineer at Schibsted Media Group

Comments 1