0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

石橋を叩いて絶対に渡らない人のためのapt upgradeガイド

Last updated at Posted at 2025-01-08

パッケージリストを更新する(実際のパッケージのインストールやアップグレードは行われない)。

sudo apt update

アップグレード可能なパッケージの一覧を表示する(実際のパッケージのアップグレードは行われない)。

apt list --upgradable

セキュリティ関連のアップデートが可能なパッケージの一覧を表示する(実際のパッケージのアップグレードは行われない)。

apt list --upgradable | grep security

パッケージのアップグレードをシミュレーションする(実際のパッケージのアップグレードは行われない)。

sudo apt upgrade --dry-run

あるパッケージ(たとえばopenssl)のアップグレードをシミュレーションする(実際のパッケージのアップグレードは行われない)。

sudo apt install --only-upgrade --dry-run openssl

--dry-runオプションを除外すれば、実際にアップグレードが行われる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?