15
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

Organization

Ubuntuでセキュリティアップデートのみ実行する

なぜかunattended-upgradesでセキュリティアップデートできない場合は以下の手順でアップデートできます。

セキュリティアップデートのあるパッケージを特定

ubuntu@ip-10-1-0-7:~$ sudo apt upgrade -s |grep security
Inst libxslt1.1 (1.1.28-2.1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Conf libxslt1.1 (1.1.28-2.1ubuntu0.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])

特定したパッケージのみアップデート

apt-get installを使う。

ubuntu@ip-10-1-0-7:~$ sudo apt-get install libxslt1.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libxslt1.1
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 145 kB of archives.
After this operation, 478 kB of additional disk space will be used.
Get:1 http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 amd64 1.1.28-2.1ubuntu0.1 [145 kB]
Fetched 145 kB in 0s (899 kB/s)
Selecting previously unselected package libxslt1.1:amd64.
(Reading database ... 52139 files and directories currently installed.)
Preparing to unpack .../libxslt1.1_1.1.28-2.1ubuntu0.1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
ubuntu@ip-10-1-0-7:~$

セキュリティアップデートが完了したことを確認

ubuntu@ip-10-1-0-7:~$ sudo apt upgrade -s |grep security
ubuntu@ip-10-1-0-7:~$

おまけ:yumの場合

環境によりますがだいたい↓これでいけます。

 yum --security update
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
15
Help us understand the problem. What are the problem?