Regarding SD card size

My SD card capacity is of 4GB…When i installed ubuntu 14.04…it occupies 49% of its size then i have installed opencv…it occupies 100% of space…but opencv is of only 240 MB after extraction…so how to lessen the space of sd card…Plzz help me…