|
![]() |
Overclock.net - Overclocking.net > Overclock.net Forum > FAQs | |
Info: What is this APT thing in Ubuntu, and how do I use it?
|
||
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||
|
makin' the big noise
![]() |
First off, this is the sister thread for YUM, which is basicly the same as APT, only on Fedora. Check it out here: http://www.overclock.net/faqs/26076-info-what-yum-thing-fedora-how.html
__________________Secondly, only use this guide if you are A: Willing to ask for help if you don't understand, and B: Know how to get a Linux terminal. The title says Ubutnu, but this FAQ will also work on Kubuntu and EduBuntu, with the exact commands I give you. Versions for Slackware/Debian/Gentoo are in the works. Now, for the good part. :) When using APT, you must first know what it is. APT stands for Advanced Package Tool. Hopefully you already know that a package is the most common file used to distrubuite software on Linux systems. Packages are .DEB files on Debian-based systems like Ubuntu, and .RPM files on RedHat based systems like Fedora. What APT does is find, download, and install packages. So, with that knowlage, here are some example commands: PHP Code:
PHP Code:
Every once in a while (every week or so), it is a good idea to update APT's list of avalibale software. To do this, type: PHP Code:
To update a piece of software that is on your system, you would type: PHP Code:
It's always a good idea to enable extra repositories, and just follow the instructions at www.ubuntuguide.org to do that, it's mostly self-explanitory. Doing so will give you access to new servers, and thus, more software. After enabling the extra servers, run: PHP Code:
Finaly, there is a graphical frontend for APT, called Synaptic. It basicly is a User Interface for APT, and does everything the command line version does, just not quite as fast or easy. I like to use Synaptic o search for a package, and then download it with APT. That about sums it up, but just remember that thisis a beginers guide to the basic functions of APT. It can do so much that we didn't enev hit on here, so stay tuned for another FAQ in the future. Let me know if you have and problems/questions, -Chipp
|
|||||||||
|
|
|
#2 (permalink) | ||||||||||||||
|
Scarring Your Psyche
![]() |
Dude--I am still lost in LInuxland--I can't even figure out how to install RPM files in Mandriva 10.1--I really appreciate the technical depth of this FAQ--too bad I still am clueless--not your fault however...
__________________
Quote:
|
||||||||||||||
|
|
|
#3 (permalink) | |||||||||||||
|
The Art of Not Being Seen
![]() |
I always find easier to use the Synaptic Package Manager than the apt command.
__________________Anyway, the apt command has other uses. Here are two more: 1. Adding a new CDROM: apt-cdrom (options) (commands) without parentesis options: - -a do a package scan. May be needed with older Debian cdroms -h help -m do not mount -n check everything, but make no changes -r rename commands: add add a cdrom to the source list ident prints the identity of the current cd rom and the stores filename. 2. Cleaning installation files: apt-get autoclean (this is for files that cannot be downloaded anymore) apt-get clean (this clean the local repository of retieved package files) Hope this complete the apt command list a bit.
|
|||||||||||||
|
|
|
#4 (permalink) | ||||||||||||
|
Commodore 64
![]() |
Quote:
Keep with it and you will be there in no time.
|
||||||||||||
|
|
|
|
#5 (permalink) | ||||||||||||||
|
Do it Harder
![]() |
there is also yet another good apt command that i think should be listed and that is
apt-get dist-upgrade this will search the repositorys and upgrade your system.. i find it best to use apt-get update apt-get dist-upgrade of course you will want to tack on sudo infront of those
__________________
Quote:
Sexy Unix Commands: date; unzip; touch; strip; finger; mount; gasp; yes; uptime;
|
||||||||||||||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|