The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/usr space - Deleting files in src directory

Discussion in 'General Discussion' started by Legin76, Feb 18, 2014.

  1. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    I need to make a small amount of space in my /usr directory. I've already moved all the logs and anything I can find information on that's safe to move or remove.

    Is it also safe to remove old kernel downloads from the src folder?

    /usr/src/kernels/2.6.18-128.1.1.el5-i686 and /usr/src/kernels/2.6.18-371.3.1.el5-i686

    The latest one is /usr/src/kernels/2.6.18-371.4.1.el5-i686.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may want to uninstall the old kernels first using the instructions here:

    Clean Boot Partition

    Once you have uninstalled the old kernels, verified the new kernel is running well and you do not require the old kernels, then you can carefully remove the files for the old kernels in /usr/src/kernels.

    Thank you.
     
  3. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    That sounds a little risky. I don't think I'd feel safe doing that.

    I only really need to free up just over 0.02mb to be able to upgrade cpanel. Although ideally a bit more than that to leave some breathing room. What is safe unused or safe to move other than the log files (which are already moved) that will give me a few mbs extra?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could remove older Apache backup archives if they exist in:

    /usr/local/apache.backup_archive

    However, in general, the best advice is to reinstall the OS with an updated partition scheme.

    Thank you.
     
Loading...

Share This Page