Friday, December 2, 2011

LINUX MANUAL FOR LIBRARIANS


Debian Package management tools
dpkg is a  Debian packaging tool which can be use to install, query, uninstall packages.
dpkg  -i packagename 
e.g. dpkg -i bluefish-2.04.deb
How to remove an installed package
dpkg  -r packagename
e.g. dpkg -r bluefish
Other useful dpkg commands
dpkg -r Packagename
Remove/Delete an installed package except configuration files
dpkg -s Packagename | grep Status
To find out if Debian package is installed or not
apt-get  APT is acronym for Advanced Package Tool. It supports installing packages over internet (ftp or http). You can also upgrade all packages in single operations, which makes it even more attractive.
apt-get install Packagename
e.g. apt-get install samba
This command installs packages.....

How to uninstall a package
apt-get remove Packagename
e.g. apt-get remove samba
Directory and File Manipulation
cd - change working directory. E.g. /Home/koha
mv Helps to rename/move location of files/directories
mv f1 f2 renames f1 to f2
rm -rf dirname Kill off an entire directory and all it’s includes files and subdirectories
mv filename Move the file called filename to the /home/dirname /home/dirname directory
 

No comments:

Post a Comment