1 Reply Latest reply on Jan 29, 2013 10:33 AM by mynameisJim

    How to reduce size of /var/swap file?


      I am trying to gain a little more space on my raspberry pi and I think the easiest way would be to reduce the 'swap' size.


      Could someone please tell me how I can do this?


      Or could you tell me if it is safe to delete the file '/var/swap' ?  (which is currectly 100MiB in size)

        • Re: How to reduce size of /var/swap file?

          I suppose that all depends on what you want to do with the pi.  This thread over on the RPF's forum




          gives some great advice for getting rid of the GUI.


          If you don't want to get rid of the GUI then at the very least running


          dpkg -l


          to see all your packages and then removing them one at a time (which I admit is painstakingly slow) will help the most.  For instance do you need both vi and nano?  Do you care about scratch and ruby?  Even without removing the GUI there's probably(and this is a very rough guess) about 500MB worth of stuff one could remove in packages that are nice but duplicated in functions (like vi and nano)