#navi(../)
* aptコマンドの操作ログの在処と確認方法 [#tfa73e62]
apt-getコマンドでinstall, update, upgrade, removeなどのオペレーションを~
いつ行い、どのような出力だったかをaptのログファイルで確認することができます。~
以下に、aptのログの在処などを記します。~
尚、本資料はUbuntu12.04を使用して確認しました。

#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)

* aptログの場所 [#na2b94b7]
apt操作・動作ログは以下のディレクトリに保存されています。
 /var/log/apt
ファイルを確認すると、以下の2つが保存されています。

:history.log|aptコマンドでinstall/update/upgrade/remove操作が記録されています。
:term.log|aptコマンドで端末に出力された内容が保存されているようです。

 sakura@ubuntu:~$ ls -l /var/log/apt/
 合計 88
 -rw-r--r-- 1 root root 18805  9月 11 23:16 history.log
 -rw-r----- 1 root adm  63795  9月 11 23:16 term.log


* 各ログの説明 [#hf3e3f96]

** ''history.log''の抜粋~ [#b3c3d6f5]
以下のようにCommandLineを確認するとaptコマンドの操作履歴がわかります。
 $ cat /var/log/apt/history.log
 
 <snip>
 
 Start-Date: 2013-09-10  23:37:22
 Commandline: apt-get install zip
 Install: unzip:amd64 (6.0-4ubuntu1, automatic), zip:amd64 (3.0-4)
 End-Date: 2013-09-10  23:37:27
 
 Start-Date: 2013-09-11  00:05:18
 Commandline: apt-get upgrade
 Upgrade: dmsetup:amd64 (1.02.48-4ubuntu7.1, 1.02.48-4ubuntu7.3), ...
 <snip>

** ''term.log''の抜粋~ [#sbd37fd6]
以下のようにterm.logを確認するとaptコマンドの出力が確認できます。
 $ cat /var/log/apt/term.log
 
 <snip>
 
 以前に未選択のパッケージ unzip を選択しています。
 (データベースを読み込んでいます ... ^M(データベースを読み込んでいます ... 5%^M(
 
 <snip>
 
 (.../unzip_6.0-4ubuntu1_amd64.deb から) unzip を展開しています...
 以前に未選択のパッケージ zip を選択しています。
 (.../archives/zip_3.0-4_amd64.deb から) zip を展開しています...
 man-db のトリガを処理しています ...
 unzip (6.0-4ubuntu1) を設定しています ...
 zip (3.0-4) を設定しています ...
 Log ended: 2013-09-10  23:37:27
 
以上、aptによる操作がログとして保存されているディレクトリとログに関する説明でした。

#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS