LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2018, 01:34 PM   #1
hokie1999
Member
 
Registered: Feb 2011
Posts: 37

Rep: Reputation: 0
opinion on removing /var/lib/yum/history log files


am looking for an opinion on removing /var/lib/yum/history files.

Through an automation process, an app was added to system of 400 CentOS 7 servers that inadvertantly and unwantedly installs/uninstalls gcc -100x a day for last six months.

Tho the problem is fixed, lots of entries in /var/lib/yum/history/log_history directory. There are subdirectories such as 10001.

What are your thoughts on removing all subdirectories and files under them (that log the gcc install or uninstall) over 30 days?

find . -mtime +30 -type d -exec rm -rf () \;
 
Old 12-06-2018, 01:37 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,610

Rep: Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496Reputation: 3496
log files can be deleted if you don't need them any more. But obviously if you don't save them you won't be able to recover. So you need to know if there was anything usable inside ....
From the other hand:
find .... -delete works, do not need to -exec rm
 
1 members found this post helpful.
  


Reply

Tags
delete, files, lib, var, yum


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
[SOLVED] iptables troubleshooting icmp and best place to log /var/log/messages or /var/log/iptables JockVSJock Linux - Security 18 02-12-2016 01:31 AM
yum install lib getting fails yum install lib* leads to install 1050 dependency pkg LittleMaster Linux - Server 3 10-29-2012 02:14 AM
/var/cache/yum and /var/lib/rpm getting BIG. How to safely pare down? SharpyWarpy Linux - General 3 02-29-2012 02:17 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 05:13 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:57 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