我現在有五個指令
假設已經進入root模式
指令如下:
zypper ref (更新套件庫)
zypper up (更新檔案)
zypper rm -u cheese (自動移除不再被需要的相依性套件)
zypper lr -e /root/my.repo (匯出套件庫設定)
zypper ar /root/my.repo (匯入套件庫設定)
我想要一次執行這五個指令
請問要怎麼打包寫成一個批次檔(或者makefile檔)?
麻煩知道的解惑
謝謝
--
假設已經進入root模式
指令如下:
zypper ref (更新套件庫)
zypper up (更新檔案)
zypper rm -u cheese (自動移除不再被需要的相依性套件)
zypper lr -e /root/my.repo (匯出套件庫設定)
zypper ar /root/my.repo (匯入套件庫設定)
我想要一次執行這五個指令
請問要怎麼打包寫成一個批次檔(或者makefile檔)?
麻煩知道的解惑
謝謝
--
All Comments