多個指令怎麼弄成一個批次檔(或makefile) - Linux

By Valerie
at 2012-05-31T08:13
at 2012-05-31T08:13
Table of Contents
我現在有五個指令
假設已經進入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檔)?
麻煩知道的解惑
謝謝
--
Tags:
Linux
All Comments

By Dora
at 2012-06-03T17:05
at 2012-06-03T17:05

By Skylar Davis
at 2012-06-06T17:57
at 2012-06-06T17:57

By Andy
at 2012-06-11T02:29
at 2012-06-11T02:29

By Hedda
at 2012-06-15T19:08
at 2012-06-15T19:08
Related Posts
關於 distro 的選擇

By Agatha
at 2012-05-31T02:30
at 2012-05-31T02:30
Ubuntu 12.04 電力和

By Quintina
at 2012-05-30T18:00
at 2012-05-30T18:00
值得醒思的一件事

By Joseph
at 2012-05-30T17:08
at 2012-05-30T17:08
Make 指令/套件 問題

By Ivy
at 2012-05-30T09:34
at 2012-05-30T09:34
Fedora 17 released

By Ursula
at 2012-05-29T22:31
at 2012-05-29T22:31