We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
O'REILLY
Tones
4
[ADDING AND REMOVING SOFTWARE
tna vrovingsomareYu'l ten nea instal snare tha ea come wh
‘your dbanon ar romoveunantasfere sit ons ake phar ie
pas
seme sar eins her rf orn. an yo somtimes in that 8
‘an downlad eveying you needa ance tn software package wes
soup of fleesyplealy haces and oer dependences ned fos
‘win are isa ogee, lng wth ascrpo mak aang the somware
tm is chaer we examine thre ey metho for adding new otware: apt
‘sng apteo Hanae sofware
ands ns spe and mos common en, You ean Us ww 12
Aoeload an instal new sofware packages, but you can ao update and up
(GE ser ine ser prefer wet comma over Tey rein
any rt ha more tonal anni woth earning
caryon
Searching fora Package
efor dwoadng a sontware package, you can check wheter the package You
ed i ial from our repo, which place where our operating Sy
the packages avaiable, The yar staghfowae
eee!
‘Not tht othe ie commando earch the apt cache oF he lace
sore the package ames Soi you weee searching forthe nrsin eteon
s5sem sort fr example you would ener te comand shown in isting 4
lp» 2 protecsis togser
ert - flexible etork Inrusion Detection Syston
snort-comen ~ flexible Hetork Intrusion Detection sytem ~ comer
cnn
sng: Serching the sem with ne fr Srt
‘As you case ues les have the heywor sr hem but ea he id
‘vote oupuc we eur a mh te in Ste, TA Wha
Atngsoftare
Now tat you now these package exis in Your epson. you EAN Ew
to doelond he sata.
Tosa a pleco sotwae from your peat stems defal epostry in
‘me termina use ey Command aoe bythe keyword wee and chen
‘me name of the package You want ns The sya aks ike tis:
ptr Seal pucepnane
Ler his out by insalng Snot on your stem ker we ert 35 3
command statement as shown Listing +2
ant wrt pe trtatt sort
utning deoarseey tree
Siggested poche:
‘he foLloving WEN packages will ba dnstalle
ae
tall hese packages witout verification (¥/=)?
ting 42: Istaing Snort wth et
‘The ouput you see els you what seing instal. everthing ook coret 2
nea and ener when propiedad your sanvare salon Wl proceed
emoring software
hen moving saftrare, se wt with them opto. food bythe name
fe stare orev (ee Listing 4.
uacing patage 1st. Done
uading state information... Dane
Brtent rae tcc teteeascneees Teel egEana eh
bm you wane eo continue ¥/n?
tig 43: Remon Sr WN oe
youwantco conta. You can eter tunis bu ough wan Beep
Snor since wel be wing again. The owe command does’ emo the confi
ntl th sane peda in the ure wi
ucrecantiguring
youdo want remove de configuration files at the same nea the pace,
youcen use thew option, 35 sown sing +4
using deperceey tee
eseng state information... ane
‘deg Lbpreloed lntnentr shrt-comon-Hirerbe snot-res
cme
eller a
Listing 4-4: Remon Sor and he accompanying confsation les with
Simply ene a the prompt continue he purge ofthe safware package and
me conguratin fe
tee ou the OU To Keep digs sala modula. many Linas
kage ar broken ro softare unis that mary diferent programs might we
‘When ou itae Sor, you tale several dependencies or ae with
"Ma Short requis rer a run No hat youre removing Sno thse her
Morrie or dependencies are longer equed so ey canbe removed by
rings rm
suacing Pecans 14st. ,Done
easing state Sfornatien
met
sarong tort-comon-ibarie (28.7.05),
aroving Modine? (2.643981)
sarong stnacter (2.28)
pacing Packages
Softwar repose ll be peroaly pated ih ew sfvears ornate
Sons ofeistng sofware. These updates don't each ou autamatially. so you
hve to equex the in ode t apply tes pats to your own syste
Updating the sea parading ting simply updates the ist phages
sable for doeload rom the epostor. whereas upracng wl upeade she
You update your inv systen by entering theo command alowed
1 he yard nee Ths wilonerch bough al he packages on Your sien
‘nd check nether uptes ne aval 40, updates ae dowloaded ee
ising.
Caw ee
ets Weti/(nirorsoe oekatey uta tabi-roing Taeiense (3
sts2hetps//ninore.ocf tealey afta taliroling/eain att P:
ots het: /inirors.oc.oakaley ula kabioreiing/contrib ands
15.2 78 Sn arin (236 1/2)
isang 4.5: Updaing alot te packages witht me
‘Te tito avale software inthe reposkory on our system wile update.
‘he update is socesl your terminal wl sate stg soe ts. om a8 OU
an ein iting 4. Note thatthe nate ofthe repstory an the values —tine,
‘se and so on-might be aierencon you stem.
parang acts
‘Toupgrade he exstngpckageson your stn eps yas BAC HP
grading your packages may make changes to your svar, you must be logged
inastot before entering wn Thiscommand will upgra very ack
gon sour spate that apt knoe abou meaning oly hse tren te repos
oye Listing 46, Uperadag canbe une
‘once you have yap instal you can tary entering yt a te co
‘andine prompt o fom the CUI by going Settings Synaptic Package
Manager. in shout open a window ke the one igure 42
stings ‘oy ronan
5 pg id don nd
gure #2: The apc Package Manager inefce
"Now you can earch fa he package youre lok fo. Siply ck the earch
Apply as stown in igre 43, synapse wi naw daifoad and inal snore
trom he reposory slang wh any ncesay dependencies
ma me
Lt atetetety | ete | ne
gure 45: Downloading Snot fom the Sap Package Manager
Someries the sofware you want nt avaiable in any of he epostores—exp
lly ifs brand new—but tay be avaabe on gab
(hupminewnestheh cometh allows developers to shar tei see
‘with tees to downlod use, and provide feedback. or nstanc, you want
Diosesing eos aking nd pensting ke, and can nit he Kat
posta you can search itu othe sotware by entering uceng ithe
search bar. telson ghub you shou sete repos fren the Search
rests
‘once youve found he star on gb, ou can ns it from the ternal by
ngistcate ar nape: github comatletuedivng gt To cane uno
‘your ye, nts the command shown ating 47
an Qt ele bee uate conala/aetvan. ake
honing ino “eneaivin’.
enotes Total 381 (dite 0), reves @ (celts 6), poek-resed 15.
aceving cojects: 1065 (231/234), $09.81 FAB | 686.08 Fs, Doe
sasolving eltar! 2008 (9/9), oor.
raking comectvity Doe
Long 7 Cloning edn wt te
system. You can eheck ose that they’ve been success downloaded By using
‘holon ising commands on he target recy kes
hehe atoeng ouput
rwur-nt-x 7 root rack 4086 3am 10 22:9 eladiving
As you can se, ung has een ecm cloned athe per, anew
summary
In ni chaper you learned feo the many waysta doelond and instal ne
sonware on your Linux sytem. Sofware package managers (ike pt GUEbased
Setteaning —Feateed gO e