InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Centos tutorials

  • Centos - save and restore iptables
  • Centos/RHEL - find package for a file
  • Change default language on Centos/RHEL
 
  • Home
  • > Centos Linux

Centos/RHEL – find package for a file

on Aug 21, 2016

Centos/RHEL Linux yum command line tool can be used to find which package a file belongs to.

Fine packages based filename

To find package which contains /usr/bin/systemctl
$ rpm -qf /usr/bin/systemctl
systemd-208-20.el7.x86_64

Find packages using filename wildcard match

$ rpm -qf /usr/bin/systemct*
systemd-208-20.el7.x86_64
$ rpm -qf /usr/bin/*ystemctl
systemd-208-20.el7.x86_64

Suggested posts:

  1. php preg_match – greedy and lazy regex examples
  2. Use watch to monitor a command at some frequency on Linux
  3. AngularJS format date using date filter
  4. Mac – how to convert mp4 to webm
  5. Change default language on Centos/RHEL
  6. CSS3 Gradient examples
  7. How to auto forward gmail from one account to another
  8. Android chrome – create website bookmark on home screen
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Centos Linux, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress