Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2962

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Remove unwanted packages and files
Results 1 to 4 of 4

Thread: Remove unwanted packages and files

  1. #1

    Remove unwanted packages and files

    Hello,

    There are lot of files and folders which is eating up the disk space and looking at them all of them are important files.

    What files/folders should i delete to to reclaim my disk space? (Which means if i delete these files, there is no harm to the server like /tmp, /var/log directory etc.. not sure which files to clear)

    Any advise would be helpful.

  2. #2
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    Posts
    882
    Unless you use your logs in some script you can compress the files in /var/log very easily by adding the compress option to the /etc/logrotate.conf file. The dateext option will also add the date on which the log was compressed to the filename.
    Code:
    compress
    dateext
    You can reduce the number of copies of log files by changing the rotation frequency. In this case 7 days are being kept.

    Code:
    rotate 7
    daily
    To activate the changes immediately run the command
    Code:
    logrotate -f /etc/logrotate.conf

    My sites:
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    -
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  3. #3
    Advisor beezlebubsbum's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    735
    what about downloaded packages? I know that apt-get caches files that you have downloaded and installed, and deleting those might save you some space. I don't know where its actually stored though...
    My Website:
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    My Website Uptime:
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

    My Server Specs: AMD Athlon X2 3800+, 2gb DDR2 RAM, 1.5TB HDD, Ubuntu 9.10
    My Gaming PC: Intel Core 2 Duo 2.93ghz, 4gb DDR2 RAM, 9800GTX+

  4. #4
    Quote Originally Posted by beezlebubsbum View Post
    what about downloaded packages? I know that apt-get caches files that you have downloaded and installed, and deleting those might save you some space. I don't know where its actually stored though...
    apt-get clean

    or if on Red Hat, "yum clean all".

    Also, "rm -f /var/log/*.[0-9]*" should be safe to run. The OP should use visit the directories /var, /usr, etc. and run "du -sk *" to determine what is taking up the most space. I wouldn't worry about /tmp. Unless the system is having some significant uptime, that gets flushed.

Similar Threads

  1. How to Remove unwanted Programes in ubuntu Linux
    By sampathkumar in forum Ubuntu / Debian
    Replies: 2
    Last Post: 10-22-2008, 02:42 PM
  2. Unwanted search at start up
    By caneiac in forum Windows - General Topics
    Replies: 4
    Last Post: 07-20-2005, 12:32 PM
  3. remove windows EOL from files
    By Blaqb0x in forum Linux - General Topics
    Replies: 4
    Last Post: 11-08-2003, 01:43 AM
  4. New Packages
    By stodgel in forum Mandriva
    Replies: 1
    Last Post: 04-19-2003, 04:56 AM
  5. Packages in RH8
    By pjt in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 03-10-2003, 11:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •