LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2015, 02:46 PM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 280

Rep: Reputation: Disabled
Can I check what files and / or directories were created by yum install <name> ?


Lets say I do yum install MariaDB and yum install firewalld and things just dont work. I had that situation with the MariaDB yesterday. Someone told me to do yum uninstall and delete files and directories rleated to this, install again, and it worked.

I had something similar with firewalld (not exactly, but I could try erasing it). Is there any yum / rpm command, which would show me what files and directories were created by yum install firewalld, or any other package, as this may be needed in the future.
 
Old 10-31-2015, 11:32 PM   #2
Doug G
Member
 
Registered: Jul 2013
Posts: 742

Rep: Reputation: Disabled
repoquery -l <package>. When it changes to dnf, use dnf repoquery -l <package>
 
Old 11-01-2015, 01:25 AM   #3
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 280

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Doug G View Post
repoquery -l <package>. When it changes to dnf, use dnf repoquery -l <package>
Thanks, this is good. Would it be safe to delete all the output of this for mysql-server or firewalld (or any other package, lets say)? I could even pipe the output to delete, but I am not sure if I would not mess anything up...

Last edited by AdultFoundry; 11-01-2015 at 01:01 AM.
 
Old 11-01-2015, 08:16 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,437

Rep: Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507
Note that this will tell you what files get installed, but not any files that get created by the application when it is running.
 
Old 11-01-2015, 07:07 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Only remove stuff installed via yum by using yum, otherwise the yum db gets confused.
For problematic issues you may(!) need to use rpm instead (rpm -e <pkg> ).

Definitely read the yum & repo man pages; there are lots of options to each cmd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS - files/directories created with local UID/GID muis87 Linux - Networking 4 04-02-2012 01:25 AM
files and directories created under ocfs2 visible from only one node bweaver Linux - Virtualization and Cloud 0 05-23-2011 10:43 AM
sort files inside a directory and sub-directories by latest created walidaly Linux - Software 8 07-25-2009 02:45 PM
Group write access for newly created files/directories without changing umask fhd Linux - Security 3 04-05-2009 05:28 AM
[SOLVED] files / directories are created when we install a RPM vikas027 Linux - Software 3 09-29-2008 09:59 AM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration