LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2017, 10:49 AM   #1
jlozanom0780
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
Exclamation Free space on linux


I have a space detail with my oracle linux and I would like to know if there is any problem for cleaning the / var / cache / yum folder

Since it does not allow me to run the yum clean all

regards
 
Old 04-24-2017, 10:52 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hi jlozanom,

Welcome to LQ.

If the folder is full of package files, then yes, it is ok to just delete them.

Last edited by AwesomeMachine; 04-24-2017 at 10:54 AM.
 
Old 04-24-2017, 08:15 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,322
Blog Entries: 25

Rep: Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390Reputation: 4390
You should be able to clear the cache with the command

Code:
yum clean all
yum clean has several options. See man yum for more.
 
Old 04-25-2017, 09:46 AM   #4
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,091

Rep: Reputation: Disabled
You may need to be the root user, or use sudo, to remove some files, just be careful.
 
Old 04-25-2017, 10:07 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
Quote:
Originally Posted by jlozanom0780 View Post
Since it does not allow me to run the yum clean all
If you're not "allowed" to run "yum clean all" due to permissions issues, you likely won't have permission to delete any of the files in that directory either.
 
  


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
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 02:50 PM
No more free space! df 99.9%, du 29% usage - missing free space ? Topper_BG Linux - General 14 02-08-2012 02:40 PM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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