You are on page 1of 11

5/14/13

How To Install Software in Linux


UserName Passw ord Login

Help

Register

RememberMe?

Home

Forum

Articles

Marketplace
|

Downloads
| QuickLinks

Hosting

Freebies

Jobs

Today'sPosts
AdvancedSearch

Today'sPosts | FAQ | Calendar | Community

ForumActions

| Unansw eredPosts | ForumRules

FindtheanswertoyourLinuxquestion:
Forum LinuxResources LinuxTutorials,HOWTO's&ReferenceMaterial

EntireSite

GETTHEANSWER

HowToInstallSoftwareinLinux

Ifthisisyourfirstvisit,besuretocheckouttheFAQbyclickingthelinkabove.Youmayhavetoregisterbeforeyoucanpost:clicktheregisterlinkabovetoproceed.Tostartviewingmessages, selecttheforumthatyouwanttovisitfromtheselectionbelow.**Ifyouareloggedin,mostadswillnotbedisplayed.** Results1to10of11

Page1of2 1 2

Last

InstallingSoftwareinGNU/LinuxOriginallypostedbyJasonLambertIntroductionForthebenefitofpeople newtoLinux,IhavewrittenagenericexplanationofhowtoinstallsoftwareinLinux....
Enjoyanadfreeexperiencebyloggingin.Notamemberyet?Register.

1 Likes
Display

ThreadTools

07062006

#1

techieMoe
LinuxGuru

HowToInstallSoftwareinLinux

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Installing Software in GNU/Lin ux


OriginallypostedbyJason Lambert

Introduction
Forthebenefitofpeoplenewto Linux,Ihavewrittenageneric explanationofhowtoinstall softwareinLinux.Notethatsome softwaremayhavespecific installationprocedures,this HOWTOisnotasubstitutefor readingtheofficialinstallation documentation ThisHOWTOcoversthefollowing topics:
Commandlineprocess: Compilingand Installingsoftware fromsource InstallingRPM's usingtheRedhat PackageManager Installingusing Debian'saptget Installingmandrake things Installingwithfedora/

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

1/11

5/14/13
yum Installingslackware packages Installingsoftware usingGentoo EMerge Installingbinaryfiles (.BIN/.SH) Installing.package Files(AutoPackage)
Graphical(GUI)process: UsingSynaptic (Fedora,Ubuntu) UsingYaST2(SuSE, openSuSE)

How To Install Software in Linux

IfyouhavejustinstalledGNU/Linux andwouldliketoknowhowto installsoftwareonyournewOS,I wouldrecommendyoureadthe sectionspecificallyforyour GNU/LinuxDistribution.


Note:fornewusers,itisgenerally easiest/besttoinstallanysoftware usingthedefaultpack agetoolthat isincludedwithyourparticular distribution.

WindowsServer2012
microsoft.com/ws2012 BuiltFromTheCloudUp. VirtualizeYourBiggest Workloads.

Donotworryifyoudon't understandorremembereverything writtenherestraightaway,book markthispageanduseitasa referencepagelateron.

LasteditedbytechieMoe03242010at01:01PM. arunperslikesthis.

07062006

#2

techieMoe
LinuxGuru

CompilingandInstallingsoftware fromsource
NOTEInstallingfromsourcecodeisthemostdifficultmethodforobtainingsoftware onLinuxandinmostcasesisnotnecessary.Mostpopularsoftwarecanbefoundand installedquiteeasilyusingyourdistribution'spackagemanager(seesectionson"apt get"and"yum").InstallingfromsourceisrecommendedonlyforexperiencedLinux usersand/orthosewhoaren'tafraidtobreaksomethingforthepurposeoflearning.

EmbeddedTraining
www.embwiz.com EmbeddedTrainingin LinuxChennaiRealtime TrainingLinuxChennai.

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Somesoftwareisdistributedin"Sourceform".Thismeansyoudownloadafile containingallthesourcecodefortheapplicationyouwanttoinstall,unpackit,and compileitonyoursystem.Compilingistheprocessofturningthesourcecodeintoan executablebinary.Thecommonmythandnewbieassumptionisthatthisisveryhard todo,oritisonlyforprogrammers.Wrong.Itisafairlystraightforwardprocess,and youwillfindthatalotofsoftwareyouinstallwillneedtobebuiltfromsource. Typicallyapplicationsyoumustcompilefromsourcewillcomeasa".tar.gz", ".tar.bz2",or".zip"file. You'llprobablywanttooperatefrominsideyourhomedirectory.Ifyouruseris(for example)username ,yourhomedirectorywillbe/home/username/.Fortherestofthis sectionwewillassumeyouhavedownloadedyourzipfileto/home/username/src.If youdonothaveasrcdirectory,youcancreateitwiththefollowing"mkdir"(make directory)command: Code:
m k d i r/ h o m e / u s e r n a m e / s r c /

So,wehaveoursourcepackagein/home/username/src/. Changetothe/home/username/src/directorywiththe"cd"(changedirectory) commandlikeso: Code:

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

2/11

5/14/13
c d/ h o m e / u s e r n a m e / s r c /

How To Install Software in Linux

Usethe"ls"(listdirectorycontents)command,toseethefileispresent: Code:
l s

Wenowneedtounzipthezippedfile,thisisdonedifferentlydependingonthefile extension. forfilesendingin.tar.gz,use: Code:


t a rz x v f< f i l e n a m e >

(replacing<filename>withthenameofthefile). forfilesendingin.tar.bz2,use: Code:


t a rj x v f< f i l e n a m e >

forfilesendingin.zip,use: Code:
u n z i p< f i l e n a m e >

Youshouldnowhaveanewdirectory,containingallofthesourcefiles.Toconfirmit exists,andtogetitsname,usethe"ls"commandagain. Code:


l s

... wenowneedtogointothenewdirectory,sousethecdcommand: Code:


c d< d i r e c t o r y >

Thisiswherethingswilldiffer.SomepackageswillhaveanINSTALLorREADMEfile whichwillcontaininstallationinstructions.use"ls"toseeifthesoftwarehasaninstall orreadmefile.Ifitdoeshaveone,youcanusethe"more"commandtoreadit,likeso: Code:


m o r eI N S T A L L

Generally,thefinal3stagesareasfollows: Configuretheinstallation Compilethesoftware Installthebinaries Thepreinstallationconfigurationisdonebyexecuting./configure: Code:


. / c o n f i g u r e

Thiswillperformsomerequirementstestingonyoursystem,andcreatea"Makefile" whichwillexplaintothe"make"utilityhowthesoftwareshouldbecompiled.Ifyou receiveanyerrormessagesduringthisstage,youmaywishtosearchtheforumsto seeiftheyhavebeenfoundandresolvedbysomeoneelsealready,ifnot,feelfreeto postaquestionontheforumsPleaseincludealloftheoutputincludinganyerror messages,andsomedetailsaboutyoursystemwhatdistroyouareusing,whatare youtryingtoinstalletcetc Thenextstageistocompilethesoftware,thisisdoneusing"make".Whenyourun "make"itwillreadtheinstructionsintheMak efileandbuildtheapplicationbinaries.

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

3/11

5/14/13
Code:
m a k e

How To Install Software in Linux

Thefinalstageistoinstallthesebinaries,ie,copythemtoamorepermanentlocation. Typicallyonlythe"root"usercandothis,soyouwillneedtoswichtotherootuser withthe"su"command: Code:


s u

Onceyouareroot,installthebinariesusingthe"make"command,followedby"install", likeso: Code:


m a k ei n s t a l l

Thatisit!Checktheuserdocumentationofthesoftwareyouinstalledfordetailsofhow toruntheapplication. Rememberthatifyouhaveanyproblems,pleasepostinthemostrelevantsectionof theforums.Whenposting,remembertoincludeasmuchinfoaspossible,including alloutputanderrormessages.

LasteditedbytechieMoe03242010at12:56PM.Reason: Changedreferenceto/usr/local

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#3

07062006

techieMoe
LinuxGuru

InstallingRPM'susingtheRedhat PackageManager
RedhatRPM'sofferaflexableandeasymethodtoinstallnewsoftware.Software installedfromanRPMpackagediffersfromcompilingfromsourceinafewways,but themostimportantoneofallisthesoftwareisalreadycompiledforyou.Essentiallyall youaredoingisextractingtheprebuiltbinariesandcopyingthemtotheirpreselected destination.RPM'sarefilesthathavea".rpm"extenstion.ThegoodpointaboutRPM's isinstallationofnewsoftware,andmaintainingthesoftwarecurrentlyinstalledismuch easierthandoingsoforindividualpackagescompiledfromsource.Thedownsideto RPM'sisthatyoudonthaveasmuchchoiceaboutwheresoftwareisinstalledonyour system,howitiscompiled,andhowitisconfigured. UsingtheRPMsystemisfairlystraightforward.Toinstallapackage,youcanusethe followingcommand: Code:
r p mi< f i l e n a m e . r p m >

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Whenusingrpm,youmustbeloggedinastherootuser.The"i"flagintheabove commandmeans"install". Uninstallingapackageisjustaseasy: Code:


r p me< p a c k a g e >

The"e"switchusedheremeans"erase"(uninstall). Notethat<package>isdifferentfrom<filename>usedwheninstalling. Forexample,ifyouareinstallinganapplicationcalled"mysoftware",youmayusea commandlike"rpmimysoftware1.0.2i386.rpm"toinstall"mysoftware",when removingwedontfollowthefilenameforinstallation,butratherthenameofthesoftware itself. ForfurtherusesofRPM,pleaseuse"rpmhelp"and"manrpm".Alsoseethispage , whichhassomefairlyusefulinformation. Ifyouneedtofind&downloadtheRPMfileforapieceofsoftware,Irecommendusing

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

4/11

5/14/13

How To Install Software in Linux


RPMFindandRPMPboneSearchNotethatnotallapplicationsareavailableas RPM's,inthesecasesyouwillneedtocompilethesoftwarefromsource.(seeabove).

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#4

07062006

techieMoe
LinuxGuru

InstallingsoftwarewithAptget
APT(AdvancePackagingTool)isawonderfulpackagemanagementsystem.It consistsofdifferenttools,whichnamesusuallybeginswith"apt":aptget,aptcache, aptcdrom,etc.UnlikeRPM,whichequivalentinaDebiansystemwouldprobablybe DPKG,aptgethandlesdependenciesresolutionandtakescareofdownloadingthe softwareforyou(muchlikeYUMinaRedHatsystem). Thoughaptgetisgenerallyusedtoinstallbinarypackages,italsocanbuildandinstall sourcepackages(likeGentoo'semerge).Onecanfurthermoreeasetheprocessof installingsoftwarebyusingSynaptic(GraphicalInterface),whichisconsideredmore featuredAPTfrontend.
aptitudeisaterminalbasedaptfrontendwithanumberofusefulfeatures,including:a muttlikesyntaxformatchingpackagesinaflexiblemanner,dselectlikepersistenceof useractions,theabilitytoretrieveanddisplaytheDebianchangelogofmostpackages, andacommandlinemodesimilartothatofaptget.Oneshoulduseaptitudetoinstall metapackagesbecauseaptitudekeepslogofallpackagesthatarepartofmeta package.Itseasytoremove/uninstallmetapackageinonegowithaptitude.

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Onemusthaverootprivilegestoexecuteaptgetoraptitudecommands.Execute'su'in Debianandprefix'sudo'inUbuntutogainrootprivileges. aptgetdependsonDebianpackagesrepositories(wherearestoredbothsourcesand binarypackages)thatcanbeconfiguredinthefile/etc/apt/sources.list.Atypical Debianstablesources.listwouldlooksomethinglikethis: # L o c a lM i r r o r Code: e e


d e bf t p : / / f t p . u s . d e b i a n . o r g / d e b i a n /s t a b l em a i nc o n t r i bn o n f r d e b s r cf t p : / / f t p . u s . d e b i a n . o r g / d e b i a n /s t a b l em a i nc o n t r i bn o n f r e e # S e c u r i t yU p d a t e s d e bf t p : / / f t p . u s . d e b i a n . o r g / d e b i a n s e c u r i t y /s t a b l e / u p d a t e sm a i nc o n t r i bn o n f r e e d e b s r cf t p : / / f t p . u s . d e b i a n . o r g / d e b i a n s e c u r i t y /s t a b l e / u p d a t e sm a i nc o n t r i bn o n f r e e

APTincludesatoolcalledaptsetup,whichcanbesummonedfromthecommandline, tohelpyouconfigureaproper/etc/apt/sources.listfile,optimizedforyourneedsand geographiclocation. OnecanalsoconfigureAPTtofollowthetestingortheunstabledistributionofDebian. Oncetheuserhasasources.listadaptedtohis/herneeds,thelocallistofpackages needstobeupdated: Code:


a p t g e tu p d a t e

Onlythencantherepositoriesbebrowsedwithaptcache. Tosearchapackagefromitstextdescription: Code:


a p t c a c h es e a r c h< s o m e t h i n g >

Replace<something>withanapplicationnameorword.Forexample, Code:
a p t c a c h es e a r c hi r cc l i e n t

willdisplayalistofseveralircclients. Toknowmoreaboutapackageanditsdescription(dependencies,functionnalities, maintainer'sidentity,etc.): Code:


a p t c a c h es h o w< p a c k a g e _ n a m e >

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

5/11

5/14/13

How To Install Software in Linux


Inthiscaseyouhavetoreplace<package_name>withtheexactpackagename. Installatingabinarypackageisdoneinonesinglestep: Code:
a p t g e ti n s t a l l< p a c k a g e _ n a m e >

Anotherneatfeatureofaptget:itallowstobuildandinstallasourcepackage. Minimally,twostepsareneededinordertodothat.Firstinstallthepackage dependencies: Code:


a p t g e tb u i l d d e p< p a c k a g e _ n a m e >

Secondlytellaptgettobuildandinstallthepackageitself: Code:
a p t g e ts o u r c eb< p a c k a g e _ n a m e >

Forexample,installingtheemailclient"pine"canbedonelikethat: Code:
a p t g e tb u i l d d e pp i n e a p t g e ts o u r c ebp i n e

Uninstallingapackageisdonelikethis: Code:
a p t g e tr e m o v e< p a c k a g e _ n a m e >

Orifyouwishtoremovethepackagealongwithallofitsconfigurationfiles(essentially doingacleanuninstall): Code:


a p t g e tr e m o v ep u r g e< p a c k a g e _ n a m e >

Awordofcaution:aptgethandlesdependenciesinaverystrictmanner.Ifyoutryto uninstallapieceofsoftwarethatotherpiecesofsoftwaredependson,aptgetwillalso wanttouninstallthem(notbeforewarningyouaboutthesituation). Furtherreading:DebianReference,Chapter6Debianpackagemanagement Fortheimpatient:DebianQuickReference,Chapter3Debianpackagemanagement

Lasteditedbydevilscasper09052007at10:46AM.

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#5

07062006

techieMoe
LinuxGuru

InstallingsoftwareonMandrake withurpm
urpmisaniftywastoinstallsoftwareonany7.xorgreaterMandrakesystem.Someof theadvantagesofMandrake'surpmutilitiesare: *Itautomaticallysolvespackagedependenciesissuesbyinstallingoruninstalling dependentpackages. *Itinstallspackagesanddependenciesdirectlyfromtheinternet. *Itallowsglobbingofpackagenames *Itwillautomaticallyupdateyoursystem. *Itwillinstallallthose"notallowedtodistribute"programsthatyoureallywanttohave (DVDsupport,MP3enoders,etc...)
HowdoIinstallurpm? urpmshouldbeinstalledbydefaultonanymodernMandrakedistobution.Ifit'snot,you caninstallitusingtheMandrakeControlCenter(MCC). urpmCommands urpmi

JoinDate: Location: Posts:

Aug2004 Texas 9,496

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

6/11

5/14/13

How To Install Software in Linux


Themostcommonlyusedcommandisurpmi.Thiscommandallowsyoutoinstall packagesfromyourconfiguredsources(seebelow).urpmiwilltrytoinstallallpackage dependencies.Itwillalsotakepartitialnamesandgiveyoualistofavailablepackages. Forexmaple,ifyouwantedtoinstalloneofthekdemoreartworkstyles,butdidn'tknow theexactname,yousimpletype Code:
[ r o o t @ c a y a n n e~ / ] # u r p m ik d e m o r e a r t w o r k

anditshouldreturnalistofpackagesnotalreadyinstalledonyoursystem.Thisalso meansitwillinstallthemostuptodatepackageforyoursystem,youdon'thaveto knowwhichversionyou'relookingfor.Asanexmaple,youmaywishtoaddDVDPlay backsupporttoyourcomputer.Thiscanbedonebyinstallinganyvideoplayer,such asXineorMPlayer,alongwiththepackagelibdvdcss.Ratherthenhavingtotypein urpmilibdvdcss1.2.11.i386.rpm,youcansimplytypein Code:


[ r o o t @ c a y a n n e~ / ] # u r p m il i b d v d c s s

urpme Theurpmecommanddeletes,orerases,currentlyinstalledpackagesandallpackages depandantonthatit. urpmq Theurpmqcommandsearchesfor,orqueries,forpackagesthatyoulist. urpmf Theurpmfcommanddoesanadvancedsearchforafilenameinallknownpackages. Forexampleifwearetryingtocompileaprogramandtheconfigurescriptis complainingaboutnotfindingncurses.h,wecandoaurpmfncurses.htofindthatitis partofthelibncurses5develpackage.

Code:
[ r o o t @ c a y a n n e~ / ] # u r p m fn c u r s e s . h l i b n c u r s e s 5 d e v e l : / u s r / i n c l u d e / n c u r s e s . h l i b n c u r s e s 5 d e v e l : / u s r / i n c l u d e / n c u r s e s / n c u r s e s . h p h p d e v e l : / u s r / s r c / p h p d e v e l / e x t e n s i o n s / n c u r s e s / p h p _ n c u r s e s . h

urpmi.addmedia urpmi.addmediadoesexactlythat,makesanrpmreposatoryavailableforurpmto utalize.Typically,youhaveyourinstallationcd'savailableasadefaultmedia,theseare calledmain.Inaddition,youalsohavethreeothermediaupdates,contribandPLF. Updatesistheupdates,andcontribisusercontributedrpm'sandPLFisallthosenot availablefordistributionforsocalledlegelreasonsrpm's.Thesysntaxfor urpmi.addmediais

urpmi.addmedia[medianame][ftpaddresswith]../base/hdlist.cz Notethatthehdlist.czisrequired.Forexample,toaddmedium'contrib',weusethe followingcommand Code:


[ r o o t @ c a y a n n e~ / ] # u r p m i . a d d m e d i ac o n t r i bf t p : / / f t p . s u n e t . s e / p u b / L i n u x / d i s t r i b u t i o n s / m a n d r a k e / u p d a t e s / 8 . 2 / R P M Sw i t h. . / b a s e / h d l i s t . c z a d d e dm e d i u mc o n t r i b r e t r i e v i n gd e s c r i p t i o nf i l eo f" c o n t r i b " . . . . . . r e t r i e v i n gd o n e r e t r i e v i n gs o u r c eh d l i s t( o rs y n t h e s i s )o f" c o n t r i b " . . . . . . r e t r i e v i n gd o n e e x a m i n i n gw h o l eu r p m id a t a b a s e

urpmi.removemedia Thiscommandremovesspecifiedmedia.NeedIsaymore? urpmi.update Theurpmi.updatecommandgoesthroughallofyourmediasourcesandupdatesyour installedpackagesifnecessary. HowdoIsetupurpm? urpmcanbesetupusingMCC,butI'vepersonallyfoundtheinstructionsattheweb siteEasyUrpmitobealittleeasier.Eitherway,youcanusethesitealongwithMCC ortheconsoletoaddmedia.Simplefollowthestepbystepinstructions,andenterthe commanditprintsoutinthegreyboxintoanyterminalwindow,asrootofcourse.You canevencopyandpastethecommand,there'snoneedtotypeitallin.

Nowthatyou'reupandrunningwithurpmi,trytoinstallafewpackages!Havefun! WherecanIgetmoreinfo? SomesiteinTexas

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

7/11

5/14/13

How To Install Software in Linux

Lasteditedbydevilscasper02212009at09:49AM.Reason: removedbrokenlinks

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#6

07062006

techieMoe
LinuxGuru

Installingwithfedora/yum
MostofthesamecommandsusedwithDebian'saptgetareusedwithyum,suchas
yuminstall yumremove yumupdate

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Foramoredetailedsetofinstructions,lookhere: http://www.fedorafaq.org/#installsoftware

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#7

07062006

techieMoe
LinuxGuru

Installingslackwarepackages
Slackwarepackagesareusually.tgzfilescontainingprebuiltbinaries.Toinstall softwareinslackwareyouwillneedtofindanddownloadthe.tgzpackagemanually beforehand.Ifyouarelookingforaslackwarepackageforapieceofsoftwareandhave notfoundityet,searchLinuxPackagesforit. Ok,oncewehaveourpackage,letsinstallit.Toinstallslackwarepackages,ensure youaretherootuserusingthecommand: Code:
s u

JoinDate: Location: Posts:

Aug2004 Texas 9,496

Nowrunthefollowingcommandtoinstallthepackage: Code:
i n s t a l l p k g< p a c k a g e n a m e . t g z >

Uninstallingapackageisalsoquitesimple: Code:
r e m o v e p k g< p a c k a g e n a m e >

Alsoworthnotingaboutslackwarepackages,isautilitycalledpk gtoolwhichwillallow youtoinstall,removeandlistpackagesonyoursystem.Tousepkgtool,run: Code:


p k g t o o l

andfollowonscreenprompts. AnyonewholikesthedebianaptgetsystembutiscurrentlyusingSlackwaremaybe interestedtohearaboutautilitycalledslaptget,theSlackwareanswertoaptget. SlaptgetisavaiblefromHere .ThereisalsoaniftyGnome/GTKfrontendforslaptget indevelopment,youcanpreviewitatthesameurl. Lastly,ifyouarehavingtroublelocatingaslackwarepackage,buthavebeenableto findaequivilentRPM,youcan"convert"thatRPMtoaslackwarepackagewhichyou canusewiththeinstallpk gandremovepk gcommands.ToconvertyourRPMto.tgz, usethecommand: Code:
r p m 2 t g z< p a c k a g e n a m e > . r p m

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

8/11

5/14/13

How To Install Software in Linux

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#8

07062006

techieMoe
LinuxGuru

InstallingsoftwareusingGentoo Emerge
GentooEmergeDocumentation Paludis,anotherpackagemanagerthatusesEmerge

JoinDate: Location: Posts:

Aug2004 Texas 9,496

InstallingBinaryFilesandScripts (.BIN/.SH)
Binaryfiles(.BIN)andshellscripts(.SH)areanotherpopularformatfordistributing applications,particularlyinthecommercial,closedsourceworld.Agoodexampleof thisaretheQuake3andDoom3gamesfromidSoftware.Basicallyallthesefilesare isalistofcommandsthatareruninsideaterminaltocopy,move,andcreatefilesin yourfilesystem.Youcanrunthesefileslikeso:
ForBINfiles: 1.Makesurethefileissetto"executable"byrunningthiscommand:

Code:
c h m o d+ xN a m e O f Y o u r F i l e . b i n

2.Runthefilelikethis: Code:
. / N a m e O f Y o u r F i l e . b i n

NOTE:Iftheinstallerrequiresaccesstodirectoriesoutsideofyour/home/directory, youmayneedtologinasrootbeforeyoucanexecutethesecommandssuccessfully. Thatcanbeaccomplishedwiththesucommand,followedbyyourroot(Administrator) password.Ubuntuuserswillusesudoandtheirregularuserpasswordinstead.


For.SHfiles: 1.MakesurethefileisexecutablebyfollowingStep1above. 2.RunthefileeitherwiththesamecommandasthepreviousStep2,orlikethis:

Code:
s hN a m e O f Y o u r F i l e . s h

LasteditedbytechieMoe03242010at01:20PM.

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#9

12172008

techieMoe
LinuxGuru

Installing.packageFiles
Inrecentyearssomefolkshavedecidedthattheexistingsystemsforpackage management(RPMandDEB)arelackingincertainwaysandthesepeoplehaveseen fittocreateothersystemsforinstallingsoftware.OnesuchsystemisAutoPackage. ThefileextensionforAutoPackagefilesis.package ,andtheyareessentially executableshellscriptsthatbuildthedesiredsoftwareonyourlocalmachine regardlessofitspackagemanagementsystem.AutoPackagefilescanresolve dependenciessimilartoRPMandDEB. ToinstallanAutoPackagefile,downloadittoyourdesktopandrightclickonthefile. Thenselect"Properties"andchoosethePermissionstab.Youwillseeadifferent screendependingonyourdistributionofLinux,butyoushouldseesomethingthatsays "Executable"or"Execute."Checkthatpermission.

JoinDate: Location: Posts:

Aug2004 Texas 9,496

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

9/11

5/14/13

How To Install Software in Linux


Closethedialoganddoubleclickonthe.packagefile.Adialogmaypopupaskingyou ifyouwanttoRunorDisplaythefile.ClickRun.Theinstallwillbeginandanyfurther instructionswilldisplayinaterminalwindow. Optionally,youcanperformthisprocedurefromaterminalwindow.Simplylaunchthe fileusingascriptinterpretersuchasSH: Code:
s hn a m e O f Y o u r P a c k a g e . p a c k a g e

Formoreinformationonthisprocedure,seetheAutoPackageFAQhere: FAQ::autopackage

RegisteredLinuxuser#270181 TechieMoe'sTechRants
#10

12172008

techieMoe
LinuxGuru

Appendix

Furtherreading
Aug2004 Texas 9,496

JoinDate: Location: Posts:

OfficalDebianAptGetHOWTO SlackwarePackageguide OfficialRPMHOWTO MaximumRPM(powerusersguidetoRPM) GuidetoGentooEmerge

Copyright,RePrinting,and comments
ThisdocumentiscopyrightJasonLambert,2004. Themandrakesectioniscontributedbyjeremy1701andiscopyrightjeremy17012004. TheDebianaptgetsectionwasoriginallywrittenbyJasonLambertandrevisedby antidruguein2006. The.BIN/.SH,.package,andSynaptic/YaST2sectionswerecontributedbytechieMoe.
Youmaynotreproduceorreprintthisdocumentinpartorinfullwithoutprior writtenpermission.

Ifyouwouldliketorequestpermissiontoreprintanypartofthisdocument,please sendJasonLambertaprivatemessageontheforums. Themandrakesectionmaynotbereprintedwithoutwrittenpermissionofjeremy1701 Alltrademarksremainthepropertyoftheirownersetc. Ifyouhaveacommentaboutthishowto,pleaseEmailJasonLambert.PleasedoNOT emailorsendaprivatemessageaskingfortechnicalassistance.Ifyouneedhelp pleasepostontheforums! EOF


Note:Thismessagewasbrokenintosmaller,moremanageablechunksandreposted bytechieMoe.

LasteditedbytechieMoe03242010at01:11PM.

RegisteredLinuxuser#270181 TechieMoe'sTechRants

Page1of2 1 2

Last

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

10/11

5/14/13

How To Install Software in Linux


PreviousThread|NextThread

PostingPermissions

Youmaynotpostnewthreads Youmaynotpostreplies Youmaynotpostattachments Youmaynotedityourposts


PingbacksareOff RefbacksareOn

BBcode isOn SmiliesareOn [IMG]codeisOn [VIDEO]codeisOn HTMLcodeisOff TrackbacksareOff

ForumRules

Pleasefillinyourdetails,w ew illcontactyoushortly. FirstName MobileNumber DD MM YYYY LastName CityofResidence EmailID Salaried

*Allf ieldsaremandatory

AnnualInc ome

Priv acy policy

ContactUs Advertise Archive Privacy Top

AlltimesareGMT.Thetimenow is12:16PM. Pow eredbyvBulletinVersion4.2.1 Copyright20002013,JelsoftEnterprisesLtd. ContentRelevantURLsbyvBSEO3.6.1

www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/64958-how-install-software-linux.html

11/11

You might also like