Configure the APT Package Manager
Last updated
Was this helpful?
Last updated
Was this helpful?
Although you've succeed the installation, you cannot do anything without configuring your source of your package manager.
Most Debian-based systems provied a powerful package manager called Advanced Packaging Tool, or APT. We can easily use apt-get command to install/remove open-source software in the Debian repository.
Before starting the configuraion, check the network connection in advance:
If you receive something like, it mean your connection is well:
Open /etc/apt/source.list We will use vi to edit source.list. If you are not familiar to vi, use nano to substitube for vi in the command.
For an archieve mirror of Debian 8 (jessie) repository, simply add following lines into sourece.list.
NOTE: You need to substitute <favourite-cran-mirror>
by one of the mirror URLs listed in the . For example: deb http://debian.csie.ntu.edu.tw/debian/ jessie main
Comment out the sources from CD/DVD In the source.list file, there are some CD/DVD sources reserved for dealing some situation without network in the future. For now, they are useless and should be commented out:
After all the commands above, you can install whatever your want in the Debian Repository.
apt-get update: This command can resynchronize and update all packages from the sources. For security issue, ensure you update your server regulariry.
apt-get install/remove: These command can simply install/remove packages you specified.
apt-get auroremove: After you remove some pakcages, you may want to execute this command for clean all the dependency.