Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Overclock.net Forum > FAQs

 
 
LinkBack Thread Tools
Old 08-11-05   #1 (permalink)
makin' the big noise
 
Chipp's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Coral Gables FL
Posts: 16,308
Blog Entries: 29

FAQs Submitted: 18
Folding Team Rank: 581
Hardware Reviews: 3
Trader Rating: 12
Default Info: What is this APT thing in Ubuntu, and how do I use it?

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:
sudo apt-get install xmms 
What I just did is tell the program to run as a root user (sudo), and install the program XMMS (X Multimedia System). Now, sometimes APT will give you an error that some dependincies have not been met. What this means is that some of the files needed to install what you want are missing. To fix this, type:
PHP Code:
sudo apt-get build-dep packagename 
Substitute "packagename" with the name of your program, and APT will download and install all files the you need to install whatever you want to run.

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:
sudo apt-get update 
That will connect to all the servers listed in your APT configuration file and download new lists of software from each.

To update a piece of software that is on your system, you would type:
PHP Code:
sudo apt-get update packagename 
Once again, substitute "packagename" for what you want to update.

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:
sudo apt-get update 
to add the new things to the master list.

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
__________________
System: Precision M4400
CPU
2.4ghz P8600
Motherboard
Dell
Memory
2x2gb DDR2 800
Graphics Card
Quadro FX770M
Hard Drive
160gb 7200 RPM
Sound Card
E-Mu 0404 USB
OS
Mac OSX 10.5.8
Monitor
1280x800 LCD
Chipp is offline I fold for Overclock.net Overclocked Account Chipp's Gallery  
Old 02-05-06   #2 (permalink)
Scarring Your Psyche
 
CyberDruid's Avatar
 
intel ati

Join Date: May 2005
Location: Blue Ridge Mts., Virginia
Posts: 21,074
Blog Entries: 1

Rep: 2285 CyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legendCyberDruid is a legend
Unique Rep: 1050
FAQs Submitted: 26
Folding Team Rank: 40
Hardware Reviews: 12
Trader Rating: 217
Default

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:
The secret of success is to develop one’s intuition with devotion, logic and ingeniousness.
Current Project: CalligaCab: TV stand/bookshelf/PC-case

System: Black Knight: Quest for the Graal
CPU
2 x X5470(ES) @ 4.1ghz Load
Motherboard
Intel D5400XS (SkullTrail)
Memory
Kingston HyperX CL4 DDR2 800 FB DIMM ECC
Graphics Card
2 Sapphire HD 3870X2 in Xfire
Hard Drive
1TB Samsung F1/2TB Areca1210 RAID5
Sound Card
Creative X-Fi Extreme Music and Console
Power Supply
Silverstone DA 1200
Case
Soldam Windy Alcadia XR-1 NRS
CPU cooling
2 d-Tek FuZion
GPU cooling
2 EK Nickle-Plated Full Coverage
OS
Vista Ultimate 64 Bit
Monitor
Asus VW246H 24" LCD
4 Million+ Folding at Home points Overclock.net Mod of the Month
CyberDruid is offline I fold for Overclock.net Overclocked Account  
Old 02-06-06   #3 (permalink)
The Art of Not Being Seen
 
slow'puter's Avatar
 
intel nvidia

Join Date: Sep 2004
Location: Massachusetts
Posts: 1,804

Folding Team Rank: 651
Hardware Reviews: 2
Trader Rating: 17
Default

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.
__________________
System: Back on Intel
CPU
Q6600 B3
Motherboard
DFI Lan Party P35 UT TR2
Memory
4x1Gb Corsair Dominator DDR2
Graphics Card
8800GTS 320Mb
Hard Drive
70Gb Raptor + 200Gb Raid 0+1
Sound Card
Creative Soundblaster X-Fi Extreme Gamer
Power Supply
P&PC Turbo Cool 1kW
Case
Tt Kandalf
CPU cooling
Stinger V8/Eheim
GPU cooling
Stock
OS
Vista Home Premium 64
Monitor
Gateway FPD2275W
slow'puter is offline I fold for Overclock.net Overclocked Account  
Old 04-03-06   #4 (permalink)
Commodore 64
 
rippon's Avatar
 
intel nvidia

Join Date: Oct 2005
Posts: 1,253

Rep: 118 rippon is acknowledged by manyrippon is acknowledged by many
Unique Rep: 84
FAQs Submitted: 1
Folding Team Rank: 1375
Trader Rating: 1
Default

Quote:
Originally Posted by CyberDruid
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...
Too bad I couldnt have posted this long ago..., but you are using a RPM based distribution. Apt is for distributions like debian, ubuntu, etc.... You might find them easier, I prefer them anyway (I have come to hate .rpm!).

Keep with it and you will be there in no time.
__________________
System: My System
CPU
E4400
Motherboard
P35 DS3R
Memory
2GB Crucial Ballistix
Graphics Card
8800GTS
Hard Drive
1x SATA 80GB, 160GB Hitachi - 1x 120GB Samsung IDE
Power Supply
520W Corsair
Case
Thermaltake VB1000WWS
CPU cooling
Tuniq Tower 120
OS
Fedora 7 and Windows XP
Monitor
ViewSonic VX922 2ms 19in
rippon is offline I fold for Overclock.net rippon's Gallery  
Old 10-30-06   #5 (permalink)
Do it Harder
 
Trippen Out's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pinellas Park, FLorida
Posts: 3,897

Rep: 258 Trippen Out is a proven memberTrippen Out is a proven memberTrippen Out is a proven member
Unique Rep: 198
FAQs Submitted: 3
Folding Team Rank: 811
Trader Rating: 6
Default

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:
" Mrs. Himmler said that she initially feared involvement with pornography or drugs. "When I opened the door, I saw his computer monitor was completely black with white text. At first I thought that he had just maximized a harmless DOS prompt, but then ... then, I saw the forward slashes and knew that my worst fears had come true. My son was using Linux."

Sexy Unix Commands: date; unzip; touch; strip; finger; mount; gasp; yes; uptime;





System: Look For Updated parts :)
CPU
E8500 vid 1.22 4.0ghz
Motherboard
Asus p5k-E WiFi
Memory
OCZ Blades low voltage 2x2gb pc8500
Graphics Card
Evga Gtx 260 Superclocked Edition
Hard Drive
Western Digital 1TB Black
Sound Card
Onboard
Power Supply
Ultra x3 1000w
Case
Thermal Take Armor+ 6000
CPU cooling
D-TEK Fuzion Bonniville core
GPU cooling
Stock
OS
Windows 7, Ubuntu 8.10
Monitor
LG 1080p 47inch
Trippen Out is offline I fold for Overclock.net Overclocked Account  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 05:09 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.15213 seconds with 8 queries