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)
iRun
 
Chipp's Avatar
 
intel ati

Join Date: Dec 2004
Posts: 13,527
Blog Entries: 28

FAQs Submitted: 18
Folding Team Rank: 173
Team Name: Rough Riders
Hardware Reviews: 3
Trader Rating: 8
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/showthread.php?t=26076

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: Linux exclusive? I think so.
CPU
Intel E2160 @ 3.1ghz (Summer OC)
Motherboard
Abit IP35-E
Memory
2x1gb OCZ Plat Rev. 2 DDR2
Graphics Card
ATI X1900XT
Hard Drive
120gb Hitatchi Deskstar IDE
Sound Card
Onboard -> AVR210 as DAC (X-Fi + linux = bad)
Power Supply
CoolerMaster RM-500
Case
CoolerMaster Centruion 5
CPU cooling
Ultra90 (lapped) and Sanyo Denki 92mm
GPU cooling
Zalman VF900
OS
ArchLinux x64
Monitor
Viewsonic VE175b
Chipp is offline I fold for Overclock.net Overclocked Account Chipp's Gallery  
Old 02-05-06   #2 (permalink)
sǝsɐɔ ɯoʇsnɔ p1ınq/11ǝs ı
 
CyberDruid's Avatar
 
intel nvidia

Join Date: May 2005
Location: Blue Ridge Mts., Virginia
Posts: 16,602

Rep: 1792 CyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a starCyberDruid is a star
Unique Rep: 802
FAQs Submitted: 26
Folding Team Rank: 16
Hardware Reviews: 12
Trader Rating: 152
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...

System: Whang Dang Doodle (all night long)
CPU
E3110 @ 4050mhz Crunching 24/7
Motherboard
DFI Dark X48
Memory
2 x 2GBG Skill DDR2 1100
Graphics Card
Zotac 8800GT (700/2000) Folding 24/7
Hard Drive
74GB Raptor
Sound Card
X-Fi Xtreme Music
Power Supply
Silverstone DA750
Case
RocketFish
CPU cooling
D-tek Fuzion
OS
Vista Ultimate 64 Bit
Monitor
KDS 17"
CyberDruid is online now 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,805

Folding Team Rank: 169
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
2x1Gb G.Skills HZ
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)
Linux Lobbyist
 
rippon's Avatar
 
intel nvidia

Join Date: Oct 2005
Posts: 1,243

Rep: 116 rippon is acknowledged by manyrippon is acknowledged by many
Unique Rep: 82
FAQs Submitted: 1
Folding Team Rank: 521
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)
Overclocker
 
Trippen Out's Avatar
 
intel nvidia

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

Rep: 233 Trippen Out is acknowledged by manyTrippen Out is acknowledged by manyTrippen Out is acknowledged by many
Unique Rep: 179
FAQs Submitted: 3
Folding Team Rank: 589
Trader Rating: 5
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: Temp System Setup
CPU
E2180
Motherboard
Asus p5k-E WiFi
Memory
Corsair TWIN2X1024A-6400 1GB
Graphics Card
Asus 8800GTS
Hard Drive
Seagate 160g Sata2 120g eide
Sound Card
Onboard
Power Supply
Antec Smartpower 2.0 500w
Case
Lian Li PC-65 USB B2 Silver
CPU cooling
D-TEK Fuzion
GPU cooling
Thermalright HR-03 Plus
OS
Vista - Ubuntu
Monitor
Westinghouse 22
Trippen Out is offline I fold for Overclock.net  
 



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



All times are GMT -4. The time now is 01:33 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.16735 seconds with 9 queries