Installing using Debian apt-get in Linux

By: Jason Lambert Emailed: 1675 times Printed: 2157 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Apt-Get is a wonderful package management system for Debian GNU/Linux. Apt-Get, like RPM make installing and managing installed software easy, and once again has the same disadvantages that binaries are pre-built and cannot really be fine tuned to your system very well. I really like Apt-Get becuase of its automatic software download and upgrade mechanisms, and unlike Redhat doesnt keep trying to sell you something, and doesnt try to limit your use of the system.

The most powerful feature of apt-get surely is that you dont manually have to find & download the software you want to install, apt-get will do this for you, and also resolve any software dependencies. Before you can use apt-get for the first time, you must do a small bit of configuration.

You need to edit your /etc/apt/sources.list file, to specify the locations of Debian packages. You will proberly want your default sources.list file to look something like this:
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
If you would like to use more upto date software on your machine, you will proberly want your sources file like this:
deb http://ftp.debian.org/debian/ sid main contrib
deb http://non-us.debian.org/debian-non-US sid/non-US contrib
deb http://security.debian.org/ stable/updates main
The first sources.list file uses the stable branch of debian packages. Software installed when using the stable version has undergone more testing, and in theory has less bugs. However, the software on the stable branch is usually much older versions, so you may be missing out on new features etc. The second example sources.list uses the UnStable branch. This means you will get newer versions of software, but you may occaisionally run into bugs which have not yet been fixed. I myself use and recommend using the unstable branch, the software on the stable branch is 2 or 3 years behind the unstable.

Once you have confirmed your sources.list file, we need to update our local list of packages that are available for installation. To do this, use the following command after logging in as the root user:

apt-get update After updating the list, you can install applications like so:
apt-get install <program> To see a list of available programs that you can install, or to find a particular program, we can use apt-cache, like so:
apt-cache search <something> Replace <something> with a application name or word. Eg, to find an irc client to install, you could execute
apt-cache search irc
.

To uninstall software is fairly straight forward also.
apt-get remove <application> replace <application> with the name of the program you want to remove.

A word of caution: If you try to remove a piece of software that other pieces of software depend on, apt-get will also want to un-install those other pieces of software as well. Becareful you dont end up uninstalling your entire system!. apt-get will prompt you before removing any additional packages so watch carefully!


Linux Home | All Linux Tutorials | Latest Linux Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Jason Lambert
Installing using Debian apt-get in Linux
Installing RPM's using the Redhat Package Manager in Linux
Compiling and Installing software from source in Linux

More Tutorials in Linux
smskannel SMS gateway run in background
Running jar files in background in ssh window
Could not open '': No such file or directory at lib/ExtUtils/MM_Unix.pm line 2697
Can't locate ExtUtils/MakeMaker.pm in @INC ...
bash: make: command not found
apxs: command not found
bash: svn: command not found
make: Nothing to be done for `all'.
How to burn your CD / DVD ISO image using Media Creator (Adaptec/Roxio) on Windows
How to burn your CD / DVD ISO image using Nero Burning ROM (Ahead Software) on Windows
How to burn your CD / DVD ISO image using Nero Express (Ahead Software) on Windows
How to burn your CD / DVD ISO image using NISO Recorder V2 Power Toy on Windows
How to burn your CD / DVD ISO image using k3b on CentOS
Compiling and Installing software from source in Linux
Installing RPM's using the Redhat Package Manager in Linux

More Latest News
Most Viewed Articles (in Linux )
Sort numbers using arrays in Shell Script
Nested if-else-fi in Linux Shell Script
Finding factorial in Shell Script
Decimal to hexadecimal converter in Shell Script
Getting System Information in Shell Script
echo Command in Linux Shell Script
for loop in Linux Shell Script
Check for leap year in Shell Script
Running jar files in background in ssh window
How to define User defined variables in Linux Shell Script
read Statement in Linux Shell Script
Nested for loop in Linux Shell Script
Digital Clock in Shell Script
bash: svn: command not found
smskannel SMS gateway run in background
Most Emailed Articles (in Linux)
smskannel SMS gateway run in background
How to burn your CD / DVD ISO image using Nero Burning ROM (Ahead Software) on Windows
How to write your first Shell Script in linux?
test command or [ expr ] in Linux Shell Script
Multilevel if-then-else in Linux Shell Script
for loop in Linux Shell Script
Print contents of a file using Shell Script
Finding factorial in Shell Script
Could not open '': No such file or directory at lib/ExtUtils/MM_Unix.pm line 2697
How to use Linux?
What is a Shell Script in linux?
How to define User defined variables in Linux Shell Script
Arithmetic in Linux Shell Script
Check for leap year in Shell Script
Check if file exists in Shell Script