Tải bản đầy đủ - 0 (trang)
Hack 56. Manage Packages with Adept

Hack 56. Manage Packages with Adept

Tải bản đầy đủ - 0trang

$sudoapt-getinstalladeptlibqt-perl





Thereasonforinstallinglibqt-perlisthatitenablessomeextra

featuresinAdept,includingtheabilitytoconfigureand

reconfigurepackagesdirectly.

LaunchAdeptfromKmenu System Adept.Themain

managementwindowisquitesimilartoSynapticbutincludes

someinterestingadditionalfeatures,suchasDebtagssupport,

showninFigure6-6.



Figure6-6.PackagemanagementwithAdept



Debtagsisaninitiativetoassociatespecifickeywordswith

packages,ratherthanrelyonsearchingpackagetitlesand

descriptionstofindwhatyouwant.It'salotlikethetagsused

forfree-formtaxonomybyFlickrandvariousbloggingtools.You

canbrowsethroughthecurrentlyavailabletagsatthebottom

rightofthewindow,anddragthemintotheTagsIWantand



TagsIDoNotWantboxestorestrictpackagesearchresults.For

example,ifyoudon'twanttoseeanyGNOMEpackageslistedin

searchresults,justbrowsethroughthetagstothe"GTKuser

interface"taganddropitonTagsIDoNotWant.

Thesearchsystemisdynamic,soyoucanjuststarttyping

searchterms,andthelistofpackageswillbenarrowed

automatically(seeFigure6-7).Thenyoucanclickthetriangle

nexttoapackagenametoseeadescriptionofthepackageand

aRequestInstallbuttontoinstallit.Ifthepackageisalready

installed,thebuttonwillsayRequestRemovalinstead.



Figure6-7.Adeptpackagesearch



Installationandremovalofpackagesdoesn'thappen

immediately.Instead,flagsaresetonthepackages,andwhen

youarehappywiththechangesyouhavemadetopackage

selections,youcanclicktheApplyChangesbuttonatthetopof

thewindow.

Adeptalsoallowsyoutomodifythelistofsoftwarerepositories

usedbyyourcomputertofetchnewpackages.Youcan



manuallymodifythelistofpackagerepositoriesdirectly[Hack

#60],orgotoView ManageRepositoriesinAdepttoseethe

repositorylistconvenientlydividedintoType,URL,Distribution,

andComponentscolumns.

Aftermakinganychangestotherepositories,clicktheFetch

UpdatesbuttonatthetopofthewindowtoforceAdepttofetch

thelatestpackagelists.

AdeptalsoprovidesaconvenientFullUpgradebuttonthatfinds

andmarksallpackagesonyoursystemthathaveupgrades

available,soaquickwaytokeepyourentiresystemup-to-date

istoopenAdept,clickFetchUpdates,thenFullUpgrade,and

thenApplyChanges.



ReceiveUpdateNotificationsAutomatically

Updatedsoftwarepackagesarereleasedquitefrequently,andif

youwanttostayontopofthelatestsecurityupdates,it's

importanttoknowwhenupdatesareavailable.Insteadof

manuallyupdatingthepackagelisteverydayandcheckingfor

newsoftware,youcanjustusetheadept-notifierpanelapplet

tokeepyouinformed.

adept-notifiersitsinyoursystemtrayandregularlychecksthe

packagerepositoriesfornewreleases.Iftherearenoupdates

toinstall,itgivesyouagreenlightinthepanel,butifnew

versionsofanysoftwareyouhaveinstalledbecomeavailable,it

popsupanotificationmessagetoletyouknow.Thatwayyou

cangetonwithjustusingyourcomputerandnotworryabout

checkingforupdatesmanually.

AdeptUpdaterisaconvenientwaytoapplyupdatestoallyour

currentlyinstalledpackages.LaunchitbygoingtoKmenu

System AdeptUpdater,andthenclickthebigFetchUpdates

buttonatthebottom.Youwillseeprogressasthelatest



packagelistsareretrieved,asshowninFigure6-8.



Figure6-8.AdeptUpdater



Ifanypackagesneedtobeupdated,youwillthenbegiventhe

optionofdownloadingandapplyingthoseupdates.



Hack57.InstallandRemoveStandalone.deb

Files



Usecommand-linetoolstoinstallindividual.debfiles

whenotherautomatedtoolsaren'tanoption.

ThepackagemanagementforDebian-baseddistributionslike

Ubuntuisverypowerfulandsavesalotofeffortthatcouldbe

wastedfindingthelatestpackagesandtrackingdown

dependencies.Automatedtoolslikeapt-get,Synaptic,and

Adeptshouldservemostusers'needsalmostallofthetime,

andyoushouldsticktothosetoolswheneverpossible.However,

therearesomecircumstanceswhenyouneedtoinstalla.deb

packagedirectly.



Ubuntuhasautomatedtoolsforpackageinstallationforgoodreason.

Thesetoolsprovideyouwithasafetynetthatensurespackagesstay

compatibleandhavethelibrariestheyrequire.Ifyouinstallstandalone

.debfiles(especiallyonesthataren'tpackagedforyourparticular

Ubunturelease),younotonlylosealotoftheseadvantages,youmight

alsobreakpartsofyoursystemduetoincompatiblelibraries,overwrite

filesotherUbuntuprogramsdependon,oradduniqueversionsthat

makeitmoredifficulttoupgradeyoursystemdowntheroad.Before

youinstallastandalone.debpackage,especiallyifyouarenewto

Ubuntu,pleaseexhaustallotheravailableresources,includingthe

universeandmultiverseUbunturespositories[Hack#60].



Youhavebuiltyourownkernel"theUbuntuway"

Ifyouhavecompiledyourownkernelsourceusingmake-



kpkg,youwillendupwitha.debpackageforthekernel

binaries,alongwith.debsforanyextramodulesyoumay

havebuilt(see"BuildKernelstheUbuntuWay"[Hack#78]

forthespecificstepsinthisprocedure).



YouhavecompiledyourownpackagefromUbuntusource

Aswhencompilingakernel,whenyoucompilefromUbuntu

sourceusingthedpkgtools,youendupwithastandalone

.debthatyouwillneedtoinstallmanually.



Youwanttorollbacktoanolderversionofaprogram

Thiscircumstancemightshowupparticularlyifyouare

usingadevelopmentreleaseofUbuntu.Sometimesthe

latestversionofapackageinadevelopmentreleasehas

bugs.Inthesecircumstances,youmightwanttorollback

tothepreviousversionofapackage.Oneofthesimplest

waystodosoistotrackdowntheolder.deb(possiblyin

yourlocalpackagecacheat/var/cache/apt/archives/)and

installitmanually.



Aprogramyouwanttoinstallhasa.debbutisn'tinUbuntu

repositories

Theremightbesomecircumstanceswherea.debyouwant

toinstalldoesn'tappearinyourUbunturepositories,

possiblybecauseit'sanewerversionthanUbuntuprovides,

becauseyouhavefoundageneric.debfileyouwantto

install,orbecauseathirdpartyhasprovideda.debfor

Ubuntubuthasn'tcreateditsownpackagerepository(such

ashowtheOperawebbrowseriscurrentlypackaged).



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 56. Manage Packages with Adept

Tải bản đầy đủ ngay(0 tr)

×