コンテンツ
bash on Windows10を使用できるようにする方法と注意事項は、以下の記事にまとめてあります!正式名称は「bash on Ubuntu on Windows10」です。
Windows10をUbuntuのコマンドで操作する! 1.使えるように準備をする(開発者モードを有効にする)!
64ビット版 Windows10のインストール「bash on Windows10」と呼ばれている機能です。2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません
Windows10をUbuntuのコマンドで操作する! 2.「bash on Windows10」を有効にする!
「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま
Windows10をUbuntuのコマンドで操作する! 3.「bash on Windows10」のインストール!
「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま
Windows10をUbuntuのコマンドで操作する! 4.bash on Windows10(ばっしゅ おん うぃんどうずてん)を起動する!
前回までの記事この記事はbash on Windows10を使えるようにするまでの記事の4番目です。1-3番目の記事は以下をどうぞ!bash on Windows10の起動bash on Windows10を起動するには以下のようにします。
ソフトを完全に削除する
「bash on Windows10」でソフトを完全に削除するには、以下のコマンドを実行します
それでは実行してみましょう。webサーバのapache2を完全に削除してみます。
@DESKTOP-1QGFR8O:~$ sudo apt-get purge apache2 [sudo] password for t: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libfreetype6 os-prober ssl-cert Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: apache2* 0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded. After this operation, 474 kB disk space will be freed. E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory) (Reading database ... 26389 files and directories currently installed.) Removing apache2 (2.4.7-1ubuntu4.9) ... runlevel:/var/run/utmp: No such file or directory invoke-rc.d: policy-rc.d denied execution of stop. Purging configuration files for apache2 (2.4.7-1ubuntu4.9) ... dpkg: warning: while removing apache2, directory '/var/www/html' not empty so not removed Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... WARN: / is group writable!
apache2が完全に削除されました。