{
 "套件管理觀念與 apt 日常操作#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "相依自動處理",
    "points": [
     "裝 A 時一起裝 B、C"
    ]
   },
   {
    "title": "檔案有記錄",
    "points": [
     "移除乾淨",
     "可反查來源套件"
    ]
   },
   {
    "title": "一次更新",
    "points": [
     "安全更新整台套用"
    ]
   },
   {
    "title": "GPG 簽章",
    "points": [
     "確認內容沒被竄改"
    ]
   }
  ]
 },
 "套件管理觀念與 apt 日常操作#2": {
  "type": "table",
  "head": [
   "家族",
   "格式",
   "高階工具",
   "底層"
  ],
  "rows": [
   [
    "Debian / Ubuntu",
    ".deb",
    "apt",
    "dpkg"
   ],
   [
    "Red Hat 系列",
    ".rpm",
    "dnf",
    "rpm"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "widths": [
   3,
   1.5,
   2,
   1.5
  ]
 },
 "套件管理觀念與 apt 日常操作#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "update",
    "points": [
     "問軟體庫有哪些版本",
     "只更新清單"
    ]
   },
   {
    "title": "upgrade",
    "points": [
     "真的換版本",
     "不移除套件"
    ]
   },
   {
    "title": "full-upgrade",
    "points": [
     "可移除套件",
     "舊名 dist-upgrade"
    ]
   }
  ]
 },
 "套件管理觀念與 apt 日常操作#4": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2
  ],
  "nodes": [
   {
    "label": "apt update",
    "sub": "更新清單",
    "color": 0
   },
   {
    "label": "apt upgrade",
    "sub": "升級套件",
    "color": 1,
    "kind": "end"
   }
  ]
 },
 "套件管理觀念與 apt 日常操作#5": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "apt list --upgradable",
    "看可升級的套件"
   ],
   [
    "apt -s upgrade",
    "模擬,不真的執行"
   ],
   [
    "apt full-upgrade",
    "可移除或新增套件"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "套件管理觀念與 apt 日常操作#6": {
  "type": "table",
  "head": [
   "動作",
   "結果"
  ],
  "rows": [
   [
    "remove",
    "保留 /etc 設定檔"
   ],
   [
    "purge",
    "設定一起清掉"
   ],
   [
    "autoremove",
    "移除不需要的相依"
   ]
  ],
  "reveal": [
   0,
   2,
   3
  ]
 },
 "套件管理觀念與 apt 日常操作#7": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "apt install",
    "安裝套件"
   ],
   [
    "apt install -y",
    "自動回答 yes"
   ],
   [
    "apt search",
    "關鍵字搜尋"
   ],
   [
    "apt show",
    "詳細資訊與相依"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "查詢與診斷:dpkg、rpm 與 dnf 對照#2": {
  "type": "table",
  "head": [
   "狀態碼",
   "意思"
  ],
  "rows": [
   [
    "ii",
    "已安裝"
   ],
   [
    "rc",
    "已移除,設定檔還在"
   ],
   [
    "hi",
    "已安裝且版本鎖定"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "查詢與診斷:dpkg、rpm 與 dnf 對照#4": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "dpkg -L",
    "列出套件的所有檔案"
   ],
   [
    "dpkg -S 路徑",
    "反查檔案屬於哪個套件"
   ]
  ],
  "reveal": [
   0,
   0,
   1,
   2
  ]
 },
 "查詢與診斷:dpkg、rpm 與 dnf 對照#7": {
  "type": "table",
  "head": [
   "rpm 指令",
   "用途"
  ],
  "rows": [
   [
    "rpm -q",
    "是否安裝與版本"
   ],
   [
    "rpm -qi",
    "詳細資訊"
   ],
   [
    "rpm -ql",
    "列出檔案清單"
   ],
   [
    "rpm -qf 路徑",
    "反查所屬套件"
   ],
   [
    "rpm -qa",
    "全部已安裝套件"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "軟體來源與簽章驗證#2": {
  "type": "cards",
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   4
  ],
  "cards": [
   {
    "title": "main",
    "points": [
     "官方支援",
     "自由軟體"
    ]
   },
   {
    "title": "universe",
    "points": [
     "社群維護",
     "自由軟體"
    ]
   },
   {
    "title": "restricted",
    "points": [
     "專有驅動程式"
    ]
   },
   {
    "title": "multiverse",
    "points": [
     "授權有限制的軟體"
    ]
   }
  ]
 },
 "軟體來源與簽章驗證#6": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "建目錄",
    "sub": "keyrings 權限 755",
    "color": 0
   },
   {
    "label": "下載公鑰",
    "sub": "curl + gpg",
    "color": 1
   },
   {
    "label": "寫來源檔",
    "sub": "signed-by",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "更新策略:自動安全更新、版本鎖定與重開機#1": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   3
  ],
  "cards": [
   {
    "title": "安全更新",
    "points": [
     "自動",
     "盡早套用"
    ]
   },
   {
    "title": "一般更新",
    "points": [
     "維護時段手動",
     "先在測試機驗證"
    ]
   },
   {
    "title": "重大版本升級",
    "points": [
     "另外立專案",
     "事前快照或備份"
    ]
   }
  ]
 },
 "更新策略:自動安全更新、版本鎖定與重開機#7": {
  "type": "table",
  "head": [
   "情況",
   "做法"
  ],
  "rows": [
   [
    "glibc、OpenSSL 更新",
    "重啟後才換新版"
   ],
   [
    "核心更新",
    "一定要重開機"
   ],
   [
    "Ubuntu",
    "看 /var/run/reboot-required"
   ],
   [
    "Red Hat 系列",
    "dnf needs-restarting"
   ]
  ],
  "reveal": [
   0,
   3,
   4
  ],
  "widths": [
   2,
   3
  ]
 }
}