apt upgrade

2025-05-25

定期的に実行が必要な以下のコマンド。

apt update && apt upgrade -y

自動化しちゃえばいいじゃん、と思い始めるタイミングで、インタラクティブな項目が登場するので、こればかりはまだまだ人力でやっている部分です。

Configuration file '/etc/xdg/labwc-greeter/autostart'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** autostart (Y/I/N/O/D/Z) [default=N] ? 

HerokuとかBeanstalkとか、基盤となるOS部分は勝手に管理してくれるサービスもありますが、逆にいうと、上記の部分くらいなので「自分でやる」と決めて、下手にベンダーロックインしない方が将来の自由度は上がるのかなぁ、と考えています。