sh 将软件转储到Mac上
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 将软件转储到Mac上相关的知识,希望对你有一定的参考价值。
#!/bin/bash
LOCATION="restore.sh"
#Change to script directory
cd `dirname "$0"`
#Dump Header
echo '#/bin/bash' > "restore.sh"
#Dump homebrew installion
echo 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' >> "restore.sh"
#Dump update brew
echo 'brew update' >> "restore.sh"
echo 'brew upgrade' >> "restore.sh"
#Dump taps
brew tap | while read tap;
do
echo "brew tap $tap" >> "restore.sh"
done
#Dump brew
brew list | while read item;
do
echo "brew install $item" >> "restore.sh"
done
#Dump cask
brew cask list | while read item;
do
echo "brew cask install $item" >> "restore.sh"
done
#Dump app store
find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |\sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##' > appstore.txt
#Dump applications
ls /Applications > applications.txt
#Cleanup
echo 'brew cleanup' >> $LOCATION
echo 'brew cask cleanup' >> $LOCATION
git add -A
git commit -m "Automatically commited"
git push
以上是关于sh 将软件转储到Mac上的主要内容,如果未能解决你的问题,请参考以下文章
sh 将Joomla数据库转储到sql文件。
sh pg_restore将本地数据库转储到Docker中
sh 在您的Magento根目录中运行此单行程序,以将已安装的数据库转储到上面的目录,其文件名与dbname [.sql]相同
sh 将mysql转储拆分为表
如何创建 Mac OS 应用程序的内存转储
sh 使用自制软件将Mac Os X的php版本更新为php 7.1。包括curl和mcrypt