WSL (2):aptでパッケージのアップデートを行ってみる

aptコマンドを少しだけ覚えたのでWindows10上のWSLで実行してみる。

■パッケージ情報のアップデート
sudo apt update
user@DESKTOP-3H77R0N:~$ sudo apt update
[sudo] password for user:
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 10s (26.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
→ OK

■パッケージのアップデート
sudo apt full-upgrade
user@DESKTOP-3H77R0N:~$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
→ OK
特にアップグレード対象のパッケージは無かった模様。
でも不要なパッケージがあるみたいのあのでautoremoveを実行してみる。

sudo apt autoremove
user@DESKTOP-3H77R0N:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libfreetype6
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 940 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 28597 files and directories currently installed.)
Removing libfreetype6:amd64 (2.8.1-2ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...


[Linux][Windows10][WSL][Ubuntu]

0 件のコメント:

その他の記事