Skip to content

Thinking more…

Just thinking more…

Day: October 26, 2017

Posted on 2017/10/26

讓套件停留在指定版本,避免升級

公司 gitlab 版本有點舊,搭配的 gitlab runner 得避免使用太新的版本,要不然會無法作用。請 google 幫忙了一下,在 StackOverflow 上找到解答:updates – How to prevent updating of a specific package? – Ask Ubuntu

所以我先使用

sudo apt-get install <package-name>==the_version

再使用

sudo apt-mark hold <package-name>

告知 apt 以後不要升級此套件即可。

October 2017
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Sep   Nov »

站內搜索

Categories

  • .Net
  • Android
  • Blog
  • Boo
  • C/C++
  • Cook
  • Linux 及其相關
  • Lyrics
  • Python
  • Visual FoxPro
  • Wine品嚐美酒
  • 亂亂逛
  • 個人新聞台
  • 理財
  • 資訊相關Idea與筆記
  • 雜記,隨筆
  • 電影流水帳
Privacy Policy Proudly powered by WordPress