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?

Linucレベル1勉強メモ #37

Posted at

# 第4章 リポジトリとパッケージ管理

練習問題4.1
インストールされているlinuctestパッケージを、設定ファイルを残したままアンインストールしたい場合、どのコマンドを実行すれば良いですか、2つ選択してください。

A. dpkg -e linuctest

B. dpkg -r linuctest

C. dpkg -i linuctest

D. dpkg --purge linuctest

E. dpkg --remove linuctest

(解答)B, E

(解説)
選択肢Aの-eでは、rpmコマンドでパッケージをアンインストールするためのオプションです。従って、選択肢Aは不正解です。-iオプションはインストールを行うため、選択肢Cは不正解です。-purgeオプションでは設定ファイルも含めて削除されるため、選択肢Dは不正解です。正解は選択肢BとEです。dpkg -rコマンドもしくはdpkg --removeコマンドを実行すると、設定ファイルをのぞいてパッケージをアンインストールします。

(わからない単語解説)

  • 設定ファイル
    コンピュータにおいて動作するプログラムや、オペレーティングシステム等の、様々な設定上の条件を記述したファイルである。
  • dpkgコマンド
    Debian形式のパッケージ管理を扱うために使う。
    書式 dpkg [オプション] アクション
  • パッケージ
  • リポジトリ
    ソースコードや設計図、開発に関する情報など保管・管理するシステム
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?