From fae6f5f652fd0d0e766b9e3a831b8a38063f5775 Mon Sep 17 00:00:00 2001 From: vPierre <72132223+Pierre-Gronau-ndaal@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:15:04 +0100 Subject: [PATCH 1/2] Create portage.yaml --- artifacts/live_response/packages/portage.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 artifacts/live_response/packages/portage.yaml diff --git a/artifacts/live_response/packages/portage.yaml b/artifacts/live_response/packages/portage.yaml new file mode 100644 index 00000000..c5181d0a --- /dev/null +++ b/artifacts/live_response/packages/portage.yaml @@ -0,0 +1,11 @@ +version: 2.0 +condition: command_exists "equery" +output_directory: /live_response/packages +artifacts: + - + description: Display installed packages. + supported_os: [linux] + collector: command + command: equery list '*' + output_file: portage_query_list.txt + From 31078a6de390751660d55c5ba2d12241a564f4bb Mon Sep 17 00:00:00 2001 From: Thiago Canozzo Lahr Date: Thu, 19 Dec 2024 08:43:22 -0300 Subject: [PATCH 2/2] artif: new portage artifact --- CHANGELOG.md | 1 + artifacts/live_response/packages/portage.yaml | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93e2ca9a..18addf4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - live_response/packages/conary.yaml: Added collection of the list of installed packages managed by the Conary package manager [linux] (by [Pierre-Gronau-ndaal](https://github.com/Pierre-Gronau-ndaal)). - live_response/packages/dpkg.yaml: Updated to verify all packages to compare information about the installed files in the package with information about the files taken from the package metadata stored in the dpkg database [linux] ([mnrkbys](https://github.com/mnrkbys)). - live_response/packages/package_owns_file.yaml: Added collection of which installed package owns a specific file or command. Note that this artifact is resource-intensive and time-consuming to execute, so it is disabled by default in all profiles [linux] ([mnrkbys](https://github.com/mnrkbys)). +- live_response/packages/portage.yaml: Added the collection of installed package lists using the Portage package management system [linux] (by [Pierre-Gronau-ndaal](https://github.com/Pierre-Gronau-ndaal)). - live_response/storage/findmnt.yaml: Added JSON output format for listing all mounted file systems [linux] ([mnrkbys](https://github.com/mnrkbys)). - live_response/storage/lsblk.yaml: Added JSON output format for listing block devices [linux] ([mnrkbys](https://github.com/mnrkbys)). - live_response/system/coredump.yaml: Added collection of core dump files information [linux] ([mnrkbys](https://github.com/mnrkbys)). diff --git a/artifacts/live_response/packages/portage.yaml b/artifacts/live_response/packages/portage.yaml index c5181d0a..e91b107d 100644 --- a/artifacts/live_response/packages/portage.yaml +++ b/artifacts/live_response/packages/portage.yaml @@ -1,4 +1,4 @@ -version: 2.0 +version: 1.0 condition: command_exists "equery" output_directory: /live_response/packages artifacts: @@ -7,5 +7,11 @@ artifacts: supported_os: [linux] collector: command command: equery list '*' - output_file: portage_query_list.txt - + output_file: equery_list.txt + - + description: Display installed packages. + supported_os: [linux] + collector: command + command: cat /var/lib/portage/world + output_file: cat_var_lib_portage_world.txt + \ No newline at end of file