最新消息:20210917 已从crifan.com换到crifan.org

【已解决】Mac中如何安装rpm包管理工具rpm

Mac crifan 669浏览 0评论
折腾:
【部分解决】Mac中如何安装rpm包policycoreutils-python
期间,需要先去Mac中安装rpm这个工具,用于后续安装rpm包。
mac install rpm
在Mac上打开RPM?
https://qastack.cn/unix/4664/open-a-rpm-on-a-mac
Install rpm on Mac OSX – Mac App Store
Mac安装rpm:-bash: rpm: command not found_weixin_42198907的博客-CSDN博客_-bash: rpm: command not found
Install rpm on Mac with Brew | BrewInstall
How can I build an RPM on my MacOS system? – Stack Overflow
然后直接去:
brew install rpm
详细log
 brew install rpm
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and mongodb/brew).
==> New Formulae
athenacli                    c7n                          shallow-backup               silicon
==> Updated Formulae
Updated 27 formulae.
==> Updated Casks
alt-tab                feishu                 malus                  sizzy                  wavebox
bettertouchtool        flipper                mega                   skim                   zappy
buildsettingextractor  gemini                 protonmail-bridge      sourcetree             zoom-for-it-admins
chef-workstation       jellyfin               routeconverter         springtoolsuite        zoomus
crypter                lark                   sitebulb               tuple


==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1g.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5c9d113393ff3efc95e5509175305fc9304fba35390a61915ed2864941
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/berkeley-db-18.1.32_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/eb5d0a59cec0fab48a0539f96195b1890599603577ca1792f831085418
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/99707d4dcc731faf980333365a694e9500f2f012f84c0bcb6d8cb5d620
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libb2-0.98.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/lz4-1.9.2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/67ca428e60e2c2f6e524dd3de42629c1a616d28b2c743b66bf4cbdcc3b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.5.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/44483961b5d2b535b0ece1936c9d40b4bc7d9c7281646cca0fb476291a
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/zstd-1.4.5.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/86b04bfd318315486d772b29d30b361e734a74269ae48805eeb3eae1d5
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libarchive-3.4.3.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5cdfab0da88b4a1141cd2f512ad2815f69191bf7d9adc49e0cb9c814af
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libmagic-5.39.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f32eb14fbef470d28a041ddefec932e8d96870b4a13dbac3f61d8c6de6
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libomp-10.0.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/aecd306b605763dbd06c73b5d470c924643b48c051f06d8a4e70be7050
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/lua-5.3.5_1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0d14b797dba0e0ab595c9afba8ab7ef9c901b60b4f806b36580ef95ebb
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/popt-1.18.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/rpm-4.15.1_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0b5556d33614062b0b9d39cc8d3f4046d562cbaa9b03498cf4b11c57de
######################################################################## 100.0%
==> Installing dependencies for rpm: openssl@1.1, berkeley-db, gettext, libb2, lz4, xz, zstd, libarchive, libmagic, libomp, lua, pkg-config and popt
==> Installing rpm dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1g.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs


and run
  /usr/local/opt/openssl@1.1/bin/c_rehash


openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.


If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc


For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"


For pkg-config to find openssl@1.1 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"


==> Summary
🍺  /usr/local/Cellar/openssl@1.1/1.1.1g: 8,059 files, 18MB
==> Installing rpm dependency: berkeley-db
==> Pouring berkeley-db-18.1.32_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/berkeley-db/18.1.32_1: 5,672 files, 116.5MB
==> Installing rpm dependency: gettext
==> Pouring gettext-0.21.mojave.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/gettext
==> Summary
🍺  /usr/local/Cellar/gettext/0.21: 1,959 files, 19MB
==> Installing rpm dependency: libb2
==> Pouring libb2-0.98.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libb2/0.98.1: 8 files, 238.5KB
==> Installing rpm dependency: lz4
==> Pouring lz4-1.9.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/lz4/1.9.2: 22 files, 581KB
==> Installing rpm dependency: xz
==> Pouring xz-5.2.5.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.5: 92 files, 1.1MB
==> Installing rpm dependency: zstd
==> Pouring zstd-1.4.5.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/zstd/1.4.5: 27 files, 3MB
==> Installing rpm dependency: libarchive
==> Pouring libarchive-3.4.3.mojave.bottle.tar.gz
==> Caveats
libarchive is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.


If you need to have libarchive first in your PATH run:
  echo 'export PATH="/usr/local/opt/libarchive/bin:$PATH"' >> ~/.zshrc


For compilers to find libarchive you may need to set:
  export LDFLAGS="-L/usr/local/opt/libarchive/lib"
  export CPPFLAGS="-I/usr/local/opt/libarchive/include"


For pkg-config to find libarchive you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libarchive/lib/pkgconfig"


==> Summary
🍺  /usr/local/Cellar/libarchive/3.4.3: 62 files, 3.5MB
==> Installing rpm dependency: libmagic
==> Pouring libmagic-5.39.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libmagic/5.39: 330 files, 7.9MB
==> Installing rpm dependency: libomp
==> Pouring libomp-10.0.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libomp/10.0.0: 9 files, 1.3MB
==> Installing rpm dependency: lua
==> Pouring lua-5.3.5_1.mojave.bottle.tar.gz
==> Caveats
You may also want luarocks:
  brew install luarocks
==> Summary
🍺  /usr/local/Cellar/lua/5.3.5_1: 28 files, 274.5KB
==> Installing rpm dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 623.6KB
==> Installing rpm dependency: popt
==> Pouring popt-1.18.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/popt/1.18: 11 files, 154.7KB
==> Installing rpm
==> Pouring rpm-4.15.1_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/rpm/4.15.1_1: 245 files, 7.6MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/xxx/Library/Caches/Homebrew/autoconf--2.69.mojave.bottle.4.tar.gz... (874.7KB)
Removing: /Users/xxx/Library/Caches/Homebrew/automake--1.16.1_1.mojave.bottle.tar.gz... (945.4KB)
Removing: /Users/xxx/Library/Caches/Homebrew/cabextract--1.9.1.mojave.bottle.tar.gz... (59.2KB)
Removing: /Users/xxx/Library/Caches/Homebrew/carthage--0.34.0.mojave.bottle.tar.gz... (1.7MB)
Removing: /Users/xxx/Library/Caches/Homebrew/gdbm--1.18.1.mojave.bottle.1.tar.gz... (196.2KB)
Removing: /usr/local/Cellar/gettext/0.20.1... (1,899 files, 18.5MB)
Removing: /Users/xxx/Library/Caches/Homebrew/gettext--0.20.1.mojave.bottle.tar.gz... (8.4MB)
Removing: /Users/xxx/Library/Caches/Homebrew/giflib--5.2.1.mojave.bottle.tar.gz... (140.4KB)
Removing: /Users/xxx/Library/Caches/Homebrew/icu4c--64.2.mojave.bottle.tar.gz... (26.1MB)
Removing: /Users/xxx/Library/Caches/Homebrew/ideviceinstaller--1.1.0_4.mojave.bottle.1.tar.gz... (22.3KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libimobiledevice--git... (186 files, 3.1MB)
Removing: /Users/xxx/Library/Caches/Homebrew/libplist--2.1.0.mojave.bottle.tar.gz... (111.2KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libpng--1.6.37.mojave.bottle.tar.gz... (442.2KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libtasn1--4.16.0.mojave.bottle.tar.gz... (121.9KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libtiff--4.1.0.mojave.bottle.tar.gz... (1.1MB)
Removing: /Users/xxx/Library/Caches/Homebrew/libtool--2.4.6_1.mojave.bottle.tar.gz... (1003.4KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libunistring--0.9.10.mojave.bottle.tar.gz... (1.4MB)
Removing: /Users/xxx/Library/Caches/Homebrew/libusb--1.0.23.mojave.bottle.tar.gz... (168.4KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libusbmuxd--2.0.1.mojave.bottle.tar.gz... (53.1KB)
Removing: /Users/xxx/Library/Caches/Homebrew/libxml2--2.9.10.mojave.bottle.tar.gz... (2.4MB)
Removing: /Users/xxx/Library/Caches/Homebrew/libzip--1.6.1.mojave.bottle.tar.gz... (115.2KB)
Removing: /Users/xxx/Library/Caches/Homebrew/little-cms2--2.9.mojave.bottle.1.tar.gz... (379KB)
Removing: /Users/xxx/Library/Caches/Homebrew/mobiledevice--2.0.0.mojave.bottle.2.tar.gz... (15KB)
Removing: /Users/xxx/Library/Caches/Homebrew/mongodb-community-shell--4.2.0.tgz... (15.4MB)
Removing: /Users/xxx/Library/Caches/Homebrew/node@8--8.17.0.mojave.bottle.tar.gz... (13MB)
Removing: /Users/xxx/Library/Caches/Homebrew/openjpeg--2.3.1.mojave.bottle.tar.gz... (2MB)
Removing: /usr/local/Cellar/openssl@1.1/1.1.1d... (7,983 files, 17.9MB)
Removing: /Users/xxx/Library/Caches/Homebrew/openssl@1.1--1.1.1d.mojave.bottle.tar.gz... (5.2MB)
Removing: /Users/xxx/Library/Caches/Homebrew/p7zip--16.02_2.mojave.bottle.tar.gz... (1.9MB)
Removing: /usr/local/Cellar/pkg-config/0.29.2... (11 files, 626.9KB)
Removing: /Users/xxx/Library/Caches/Homebrew/pkg-config--0.29.2.mojave.bottle.1.tar.gz... (234.3KB)
Removing: /Users/xxx/Library/Caches/Homebrew/readline--8.0.1.mojave.bottle.tar.gz... (517.9KB)
Removing: /Users/xxx/Library/Caches/Homebrew/sqlite--3.31.1.mojave.bottle.tar.gz... (1.9MB)
Removing: /Users/xxx/Library/Caches/Homebrew/tree--1.8.0.mojave.bottle.tar.gz... (49.9KB)
Removing: /Users/xxx/Library/Caches/Homebrew/winetricks--20191224.tar.gz... (667KB)
Removing: /usr/local/Cellar/xz/5.2.4... (92 files, 1MB)
Removing: /Users/xxx/Library/Caches/Homebrew/xz--5.2.4.mojave.bottle.tar.gz... (373.5KB)
Removing: /Users/xxx/Library/Caches/Homebrew/zeromq--4.3.2.mojave.bottle.tar.gz... (882.7KB)
Removing: /Users/xxx/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz... (9.0MB)
Removing: /Users/xxx/Library/Caches/Homebrew/python--3.7.6.mojave.bottle.tar.gz... (14.8MB)
Removing: /Users/xxx/Library/Caches/Homebrew/python--3.7.6_1.mojave.bottle.tar.gz... (14.8MB)
Removing: /Users/xxx/Library/Caches/Homebrew/Cask/xquartz--2.7.11.dmg... (75.9MB)
Removing: /Users/xxx/Library/Caches/Homebrew/Cask/android-sdk--4333796.zip... (98.2MB)
Removing: /Users/xxx/Library/Caches/Homebrew/Cask/android-platform-tools--29.0.5.zip... (7.7MB)
Removing: /Users/xxx/Library/Logs/Homebrew/libimobiledevice... (8 files, 655.5KB)
Removing: /Users/xxx/Library/Logs/Homebrew/libtool... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/mobiledevice... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libxml2... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libplist... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/python... (3 files, 141.4KB)
Removing: /Users/xxx/Library/Logs/Homebrew/carthage... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/sqlite... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/ideviceinstaller... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libusbmuxd... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libtasn1... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libzip... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/libusb... (64B)
Removing: /Users/xxx/Library/Logs/Homebrew/automake... (64B)
Pruned 0 symbolic links and 2 directories from /usr/local
==> Upgrading 12 dependents:
ideviceinstaller 1.1.0_4 -> 1.1.1, libidn2 2.2.0_1 -> 2.3.0, libxml2 2.9.10 -> 2.9.10_1, libxml2 2.9.10 -> 2.9.10_1, libimobiledevice HEAD-3d8d13f_6 -> HEAD-3d8d13f, libimobiledevice HEAD-3d8d13f_6 -> HEAD-3d8d13f, pyenv 1.2.14_1 -> 1.2.20, pyenv 1.2.14_1 -> 1.2.20, python@3.8 3.8.5, python@3.8 3.8.5, wget 1.20.3_1 -> 1.20.3_2, wget 1.20.3_1 -> 1.20.3_2
==> Upgrading libxml2 2.9.10 -> 2.9.10_1
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0f65874bcd50d31aaf8b2e6c8ef414cb65a8d8b9eb6d1fa4ef179c6e0a
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.4.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/29f7102a730ab39c8312cad1e7e439f6da2a67c452ce2b3380581eb185
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.32.3.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/b89dc46dace451b2adc7f7e1c7456788cb3b74b3250d6183b0b7396bc0
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/python%403.8-3.8.5.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c663ffeac543b83aeae1ca13700fcb039edd57b3f0579b78fed1c2c483
###################                                                       27.1%
然后速度太慢,所以中断掉,加上代理以提速
export HTTP_PROXY=http://127.0.0.1:58591; export HTTPS_PROXY=http://127.0.0.1:58591; export ALL_PROXY=socks5://127.0.0.1:51837
重新试试
 brew install rpm
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 1 formula.
==> Updated Casks
gitkraken


Warning: rpm 4.15.1_1 is already installed and up-to-date
To reinstall 4.15.1_1, run `brew reinstall rpm`
重新安装
 brew reinstall rpm
==> Downloading https://homebrew.bintray.com/bottles/rpm-4.15.1_1.mojave.bottle.tar.gz

==> Reinstalling rpm
==> Pouring rpm-4.15.1_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/rpm/4.15.1_1: 245 files, 7.6MB
即可。
 which rpm
/usr/local/bin/rpm
【总结】
此处Mac中安装rpm可以通过brew
brew install rpm
即可。

转载请注明:在路上 » 【已解决】Mac中如何安装rpm包管理工具rpm

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
99 queries in 0.207 seconds, using 23.33MB memory