How to List Files Installed From a RPM or DEB Package in Linux (2024)

Aaron Kili Read Time: 1 minCategories Linux Commands 6 Comments

Have you ever wondered where the various files contained inside a package are installed (located) in the Linux file system? In this article, we’ll show how to list all files installed from or present in a certain package or group of packages in Linux.

This can help you to easily locate important package files like configurations files, documentation and more. Let’s look at the different methods of listing files in or installed from a package:

How to List All Files of Installed Package in Linux

You can use the repoquery command which is part of the yum-utils to list files installed on a CentOS/RHEL system from a given package.

To install and use yum-utils, run the commands below:

# yum update # yum install yum-utils

Now you can list files of an installed RPM package, for example httpd web server (note that the package name is case-sensitive). The --installed flag means installed packages and -l flags enables listing of files:

# repoquery --installed -l httpd# dnf repoquery --installed -l httpd [On Fedora 22+ versions]
How to List Files Installed From a RPM or DEB Package in Linux (1)

Important: In Fedora 22+ version, the repoquery command is integrated with dnf package manager for RPM based distribution to list files installed from a package as shown above.

Alternatively, you can as well use the rpm command below to list the files inside or installed on the system from a .rpm package as follows, where the -g and -l means to list files in package receptively:

# rpm -ql httpd
How to List Files Installed From a RPM or DEB Package in Linux (2)

Another useful option is used to use -p to list .rpm package files before installing it.

# rpm -qlp telnet-server-1.2-137.1.i586.rpm

On Debian/Ubuntu distributions, you can use the dpkg command with the -L flag to list files installed to your Debian system or its derivatives, from a given .deb package.

In this example, we will list files installed from apache2 web server:

$ dpkg -L apache2
How to List Files Installed From a RPM or DEB Package in Linux (3)

Don’t forget to check out following useful articles for package management in Linux.

  1. 20 Useful ‘Yum’ Commands for Package Management
  2. 20 Useful RPM Commands for Package Management
  3. 15 Useful APT Commands for Package Management in Ubuntu
  4. 15 Useful Dpkg Commands for Ubuntu Linux
  5. 5 Best Linux Package Managers for Linux Newbies

That’s all! In this article, we showed you how to list/locate all files installed from a given package or group of packages in Linux. Share your thoughts with us using the feedback form below.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

How to List Files Installed From a RPM or DEB Package in Linux (4)

Previous article:

How to Add a New Disk to an Existing Linux Server

Next article:

Deal: Build an IT Career with ITIL Foundation Training Course (98% Off)

How to List Files Installed From a RPM or DEB Package in Linux (5)

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)

Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Related Posts

How to Transfer Files (Local and Remote) in Linux

How to Sync New and Changed Files Using ‘rsync’ Command

How to Search Files by Name or Extension Using find Command

10 Lesser Known Linux Commands – Part 2

11 Lesser Known Useful Linux Commands

26 Security Hardening Tips for Modern Linux Servers

6 Comments

Leave a Reply

  1. That lists the filenames, what lists the permissions of the files (like ‘ls -l’)?

    Reply

    • @Nigel

      Trues, thanks for the useful addition.

      Reply

  2. Can somebody help me in finding files opened by yum on debian Linux…. The files are supposed to be having commands to do my assignment but they are been hidden.

    Reply

    • @Sana

      YUM works on RHEL/CentOS Linux distributions and APT works on Debian/Ubuntu. You can find APT files under /etc/apt/ directory.

      Reply

    • @julian

      Yeah, there are many ways to do it, thanks for mentioning this.

      Reply

Got Something to Say? Join the Discussion...

How to List Files Installed From a RPM or DEB Package in Linux (2024)
Top Articles
Where is CoinZoom Available
2 or 5 Year Fixed Mortgage Rates, which is best for you in 2024?
Use Copilot in Microsoft Teams meetings
St Thomas Usvi Craigslist
Pollen Count Centreville Va
123Movies Encanto
Arrests reported by Yuba County Sheriff
craigslist: south coast jobs, apartments, for sale, services, community, and events
Pickswise the Free Sports Handicapping Service 2023
Azeroth Pilot Reloaded - Addons - World of Warcraft
Craigslist Dog Kennels For Sale
18443168434
Craigslist Pets Southern Md
Wordle auf Deutsch - Wordle mit Deutschen Wörtern Spielen
What Happened To Maxwell Laughlin
Busty Bruce Lee
Bend Pets Craigslist
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
Skyward Login Jennings County
Indystar Obits
Scout Shop Massapequa
Like Some Annoyed Drivers Wsj Crossword
Www.patientnotebook/Atic
Baldur's Gate 3: Should You Obey Vlaakith?
Boxer Puppies For Sale In Amish Country Ohio
Lexus Credit Card Login
Timeline of the September 11 Attacks
Cowboy Pozisyon
Enduring Word John 15
Sams Gas Price Sanford Fl
*!Good Night (2024) 𝙵ull𝙼ovie Downl𝚘ad Fr𝚎e 1080𝚙, 720𝚙, 480𝚙 H𝙳 HI𝙽DI Dub𝚋ed Fil𝙼yz𝚒lla Isaidub
Google Flights To Orlando
Stubhub Elton John Dodger Stadium
Ridge Culver Wegmans Pharmacy
Gabrielle Enright Weight Loss
Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
Sinai Sdn 2023
Culvers Lyons Flavor Of The Day
Jason Brewer Leaving Fox 25
Ferguson Showroom West Chester Pa
Busted Newspaper Mcpherson Kansas
UT Announces Physician Assistant Medicine Program
Timothy Warren Cobb Obituary
Gary Vandenheuvel Net Worth
Neil Young - Sugar Mountain (2008) - MusicMeter.nl
Learn4Good Job Posting
Marcel Boom X
Oak Hill, Blue Owl Lead Record Finastra Private Credit Loan
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 5597

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.