不同的 linux 发行版有不同的包管理软件,比如 Debian 系的 Linux 使用 dpkg/apt-get,Redhat 系的 Linux 使用 rpm/yum,MACOS 使用 homebrew,Archlinux 使用pacman。
而每个包管理软件的使用方法都很不一样。要记住这些包管理软件的用法也是一件十分繁琐的事情。
pacapt 是一个很有趣的脚本,它可以把其他系统的包管理软件包装成 pacman 来使用。
目前它支持的包管理软件有:
通过下面三个命令就可以安装 pacapt 并将之包装成 pacman
sudo wget -O /usr/bin/pacapt https://github.com/icy/pacapt/raw/ng/pacapt
sudo chmod 755 /usr/bin/pacapt
sudo ln -sv /usr/bin/pacapt /usr/bin/pacman
pacapt 的语法跟 pacman 十分接近,比如搜索软件可以使用
pacman -Ss nethack
结果:
crossfire-client - Client for the multiplayer roguelike Crossfire
crossfire-client-sounds - sound files for playing crossfire
crossfire-common - Architecture independent common files for Crossfire server
crossfire-server - Server for Crossfire Games
glhack - Fullscreen SDL/OpenGL version of NetHack
hearse - exchange Nethack bones files with other players
nethack-common - dungeon crawl game - common files
nethack-console - dungeon crawl game - text-based interface
nethack-el - Emacs major-mode for playing NetHack
nethack-lisp - dungeon crawl game - Lisp interface
nethack-spoilers - Spoiler files for the Nethack adventure game
nethack-x11 - dungeon crawl game - X11 interface
pterm - PuTTY terminal emulator
slashem - variant of Nethack
slashem-gtk - variant of Nethack (Gtk window port)
slashem-sdl - variant of Nethack (SDL window port)
slashem-x11 - variant of Nethack (X11 window port)
