pacaptisa56KBshellwrapperformanypackagemanagers.Simplyinstallpackagewithpacapt-ShtoporpacaptinstallhtoponanyLinux,BSD,OpenWrtorMacOSmachines.Itsupportsthefollowingpackagemanagers:
pacmanbyArchLinux,ArchBang,Manjaro,etc.dpkg/apt-getbyDebian,Ubuntu,etc.homebrewbyMacOSXmacportsbyMacOSXyum/rpmbyRedhat,CentOS,Fedora,OracleLinux,etc.portagebyGentoozypperbyOpenSUSEpkgngbyFreeBSDcavebyExherboLinuxpkg_toolsbyOpenBSDsun_toolsbySolaris(SunOS)apkbyAlpineLinuxopkgbyOpenWrttazpkgbySliTazLinuxswupdbyClearLinuxtlmgrbyTeXLivecondabyCondaTOCDescriptionInstallationInstallthestablescriptfromGithubUsageBasicoperationsBasicoptionsImplementedoperationsRelatedprojectsSimilarprojectsDevelopmentGeneralstepsLicenseAuthorsandContributorsInstallationThisscriptshouldn'tbeinstalledonanArch-basedsystem.Oncave-basedsystem,bashisrequired.
InstallthestablescriptfromGithubYoucandownloadthestablescriptandmakeitexecutable.Onnon-Arch-basedsystem,youmayusepacmanasscriptnameinsteadofpacapt.
$sudowget-O/usr/local/bin/pacapt\https://github.com/icy/pacapt/raw/ng/pacapt$sudochmod755/usr/local/bin/pacapt$sudoln-sv/usr/local/bin/pacapt/usr/local/bin/pacman||trueFornon-systempackagemanager,youneedtocreatesymboliclinks
$ln-s/usr/local/bin/pacapt/usr/local/bin/pacapt-tlmgr$ln-s/usr/local/bin/pacapt/usr/local/bin/pacapt-condaYoucanalsouseshorterlinks:
$ln-s/usr/local/bin/pacapt/usr/local/bin/p-tlmgr$ln-s/usr/local/bin/pacapt/usr/local/bin/p-condanotingthesuffix(e.g.,-tlmgr,-conda)ismandatory.
UsageBasicoperationsForsystempackagemanager
Updatepackagedatabase:pacapt-Sy,orpacaptupdateInstallapackage:pacapt-Sfoo,orpacaptinstallfooSearchapackage:pacapt-Ssfoo,orpacaptsearchfooRemoveapackage:pacapt-Rfoo,orpacaptremovefooUpgradesystem:pacapt-Su,orpacaptupgradeRemoveorphans:pacapt-Sc,orpacaptautoremovefooCleanup:pacapt-Sccorpacapt-Sccc,orpacaptcleanFornon-systempackagemanager:Similarasabove,howeveryouneedtocallcorrectscriptname,e.g.,
InstallaCondapackage:pacapt-conda-SfooRemoveaCondapackage:pacapt-conda-RfooBasicoptionsSeealsohttps://github.com/icy/pacapt/blob/ng/lib/help.txt.
Somebasiccommandlineoptions
-h(--help):Printhelpmessage;-P:Printlistofsupportedoperations;-V:PrintscriptversionSomepopularoptionsoftheoriginalArchLinux'spacmanprogramaresupportedandlistedinthetableinthenextsection.
AlonglistofoptionsandoperationscanbefoundfromArchLinux'swiki.
ImplementedoperationsQQcQeQiQkQlQmQoQpQsQuRRnRnsRsSScSccScccSgSiSiiSlSsSuSuySyUapk~**********************cave**************x*****xconda********dnf~***********************dpkg~************~************homebrew****************macports*****~********opkg**************pkgng****************pkg_tools~********~**x**~**xportage*****************sun_tools*******swupd*************tazpkg*************tlmgr**********yum************************zypper**************************Notes:
*:Implemented;~:Implemented.Someoptionsmaynotsupported/implemented;x:OperationisnotsupportedbyOperatingsystem;Thetableisgeneratedfromsource.Pleasedon'tupdateitmanually.Relatedprojectsbatch-pacapt:AnArch'spacman-likepackagemanagerforWindowsnode-pacapt:Anode.jswrapperofpacapt+batch-pacaptpacapt'sndbranch:ArewriteinDlang,nowdeprecated.pacapt-py:AproofofconceptinPythontoprovidepacapt-likeexperiencetoHomebrew.pacapt-go:AmorecompleterewriteinGo,nowlivesinthego-devbranchofpacaptraslegacycode.Similarprojectssysgetisafront-endforeverypackagemanager,writteninC++.Itprovidessomebasicfeaturestomanipulatepackagesonyoursystem.pacaptrwasoriginallystartedasaRustportofthisproject(pacapt)(Seealso#126),nowit'sgrowingwiththeirownnewfeaturesandsupport.DevelopmentGeneralstepsMakesureyoureadsomeinstructionsinCONTRIBUTING.md.
Adevelopmentscriptcanbecompiledfromthesourcecode.
$gitclonehttps://github.com/icy/pacapt.git$cdpacapt#switchtodevelopmentbranch$gitcheckoutng#compilethescript$./bin/compile.sh>pacapt.dev#checkifsyntaxisgood$bash-npacapt.dev$sudoinstall-m755./pacapt.dev/usr/local/bin/pacaptPleasereadthesampleMakefileforsomedetails.
LicenseThisworkisreleasedunderthetermsofFairlicense(https://opensource.org/licenses/fair).
AUTHORS.CONTRIBUTORSManypeoplehavecontributedtotheprojectbysendingpullrequestsand/orreportingontheticketsystem.Hereisanincompletelistofauthorsandcontributors.
10sr(10sr)AlexanderDupuy(dupuy)AnhK.Huynh(icy)AntonyLee(anntzer)AlexLyon(Arcterus)ÁlvaroMondéjar(mondeja)CarlX.Su(bcbcarl)CuongManhLe(Gnouc)DanielYCLin(dlintw)DannyGeorge(dangets)DarshitShah(darnir)DmitryKudriavtsev(dkudriavtsev)EricCrosson(EricCrosson)EvanRelf(evanrelf)GijsTimmers(GijsTimmers)Hà-DươngNguyễn(cmpitg)HuyNgô(NgoHuy)JamesPearson(xiongchiamiov)JanneHeß(dasJ)JiaweiZhou(4679)KarolBlazewiczKevinBrubeck(unhammer)KonradBorowski(xfix)KylieMcClain(somasis)GenLi(Rami3L)ValerioPizzi(Pival81)SiônLeRoux(sinisterstuf)ThiagoPerrotta(thiagowfx)VojtechLetal(letalvoj)
评论