Ubuntu 20.04にapt-get removeでlighttpdをアンインストール

2021年10月31日

OSバージョンを確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

書式1
apt-get remove [パッケージ名]
操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt-get remove lighttpd
# sudo apt-get remove lighttpd
# sudo apt-get remove lighttpd

書式2
sudo apt-get remove –purge パッケージ名
–purgeオプションを使用すると設定ファイルごとすべて削除します。
操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt-get remove --purge lighttpd
# sudo apt-get remove --purge lighttpd
# sudo apt-get remove --purge lighttpd

 

Ubuntu 20.04

Posted by arkgame