Apt-get commands manual debian ubuntu linux

All apt-get commands manual for debian ubuntu linux


        APT (Advanced Packaging Tool) is a powerfull package management tool used in Debian ubuntu distributions for installing, upgrading, uninstalling and many more package management in ubuntu Linux. 

here you can find some useful apt-get cammands manual with examples.
#apt-get man (How to)


Install a package with apt-get
Syntax:  #sudo apt-get install <package> 
eg:  user@ubuntu:~$ sudo apt-get install squid


Install multiple packages with apt-get command
Syntax:  #sudo apt-get install <package1> <package2> <package2> 
eg:  user@ubuntu:~$ sudo apt-get install squid apache2    (installs both squid and apache)


Remove a package with apt-get
Syntax:  #sudo apt-get remove <package> 
eg:  user@ubuntu:~$ sudo apt-get remove apache2   (Does not remove configuration files)  
user@ubuntu:~$ sudo apt-get --purge remove apache2   (remove configuration files also)


Update APT package index (synchronize to latest package list)
user@ubuntu:~$ sudo apt-get update 


Upgrade all installed packages
user@ubuntu:~$ sudo apt-get -u upgrade


Upgrade Distribution (upgrades the entire system)
user@ubuntu:~$ sudo apt-get -u dist-upgrade


Clean the apt-get package index in the system
user@ubuntu:~$ sudo apt-get autoclean


Reinstall a package
Syntax:  #sudo apt-get --reinstall install <package> 
Eg:   user@ubuntu:~$ sudo apt-get --reinstall install squid 


Apt-get search packages
Syntax:  #sudo apt-get search <package> 
Eg:   user@ubuntu:~$ sudo apt-get search squid


0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons