pacapt开源项目

我要开发同款
匿名用户2021年11月09日
48阅读
开发技术SHELL
所属分类终端/远程登录、应用工具
授权协议View license

作品详情

pacapt-AnArchLinux'spacman-likewrapperformanypackagemanagers

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)apkbyAlpineLinuxopkgbyOpenWrttazpkgbySliTazLinuxswupdbyClearLinuxtlmgrbyTeXLivecondabyCondaTOCDescriptionInstallationInstallthestablescriptfromGithubUsageBasicoperationsBasicoptionsImplementedoperationsRelatedprojectsSimilarprojectsDevelopmentGeneralstepsLicenseAuthorsandContributorsInstallation

Thisscriptshouldn'tbeinstalledonanArch-basedsystem.Oncave-basedsystem,bashisrequired.

InstallthestablescriptfromGithub

Youcandownloadthestablescriptandmakeitexecutable.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||true

Fornon-systempackagemanager,youneedtocreatesymboliclinks

$ln-s/usr/local/bin/pacapt/usr/local/bin/pacapt-tlmgr$ln-s/usr/local/bin/pacapt/usr/local/bin/pacapt-conda

Youcanalsouseshorterlinks:

$ln-s/usr/local/bin/pacapt/usr/local/bin/p-tlmgr$ln-s/usr/local/bin/pacapt/usr/local/bin/p-conda

notingthesuffix(e.g.,-tlmgr,-conda)ismandatory.

UsageBasicoperations

Forsystempackagemanager

Updatepackagedatabase:pacapt-Sy,orpacaptupdateInstallapackage:pacapt-Sfoo,orpacaptinstallfooSearchapackage:pacapt-Ssfoo,orpacaptsearchfooRemoveapackage:pacapt-Rfoo,orpacaptremovefooUpgradesystem:pacapt-Su,orpacaptupgradeRemoveorphans:pacapt-Sc,orpacaptautoremovefooCleanup:pacapt-Sccorpacapt-Sccc,orpacaptclean

Fornon-systempackagemanager:Similarasabove,howeveryouneedtocallcorrectscriptname,e.g.,

InstallaCondapackage:pacapt-conda-SfooRemoveaCondapackage:pacapt-conda-RfooBasicoptions

Seealsohttps://github.com/icy/pacapt/blob/ng/lib/help.txt.

Somebasiccommandlineoptions

-h(--help):Printhelpmessage;-P:Printlistofsupportedoperations;-V:Printscriptversion

SomepopularoptionsoftheoriginalArchLinux'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.DevelopmentGeneralsteps

MakesureyoureadsomeinstructionsinCONTRIBUTING.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/pacapt

PleasereadthesampleMakefileforsomedetails.

License

ThisworkisreleasedunderthetermsofFairlicense(https://opensource.org/licenses/fair).

AUTHORS.CONTRIBUTORS

Manypeoplehavecontributedtotheprojectbysendingpullrequestsand/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)
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论