2012-05-16 63 views

回答

5

這幾乎不是一個gpg的具體問題,應該問一個OSX系統支持部分,但是,我會盡我所能回答,但只針對安裝GPGTools for OSX(安裝其他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。

相關問題