我正在尝试在mac mini上安装gpg工具我有ssh访问权限,所以我可以安装s3cmd。
我知道你可以使用安装程序dmg http://www.gpgtools.org/installer/index.html
但由于我只有ssh访问权限,我需要通过终端安装此功能,并且无法找到在何处执行此操作,如果我点击来源,则会将我带到此页面https://github.com/GPGTools/GPGTools,这对我没用。
有人能指出我正确的方向。
答案 0 :(得分:5)
这不是gpg特定的问题,应该问一个OSX系统支持部分,但是,我会尽力回答,但仅针对OSX的安装GPGTools(安装其他dmg / pkg的过程) OSX可能会有所不同。)
# Move to a location we can work
cd /tmp
# Retrieve the DMG for GPGTools
wget https://github.com/downloads/GPGTools/GPGTools/GPGTools-20120318.dmg
# Mount the DMG image so we can access it's contents;
# NOTE: the last line of the output describes where the image was mounted.
hdiutil attach ./GPGTools-20120318.dmg
# Move into the the mounted image
cd /Volumes/GPGTools/
# Now begin the installer as root, with a target of "/"
sudo installer -pkg GPGTools.mpkg -target "/"
# Now we must fix the permissions of our gnupg directory, as the installer
# script seems to "fix" the permissions with the root user
sudo chown -R `whoami`: ~/.gnupg
# Now move out of the mounted volume directory so we can unmount it
cd /tmp
# Unmount the volume
hdiutil detach /Volumes/GPGTools
现在应该安装GPGTools。