Saturday, July 3, 2010

Package Compilation in Linux

Its a very common task for Linux System Administrator to compile a source package for particular system. We can compile our source package in various way. But most common way is rpmbuild command. To use that command rpmbuild package sould be install in your system. And try  with following way.

# rpmbuild --rebuild  package-name.src.rpm

The above command will compile your source package and create binary rpm.

I will show more other way to compile package from src rpm & tar format also.


EnjoY...

File System Tuning

In linux ext3 file system, it reserved some space. The default percentage (%) for that space is 5%.
In any case if  root partition ' / ' is full we can use those reserved space.
Simply using File System tuning command tune2fs.

# tune2fs -m N /dev/partition-number   --- Syntex

#tuene2fs -m 0 /dev/sda1 

The above command will reduce reserved partition space from 5% to 0%. If you partition doesn't contain any important data only songs and movies its a great time to reduce percentage and increase the space.