Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
78dda5ed
Commit
78dda5ed
authored
Jan 23, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add epm history command
parent
cf87f1a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
1 deletion
+50
-1
epm
bin/epm
+3
-0
epm-history
bin/epm-history
+46
-0
yum
bin/yum
+1
-1
No files found.
bin/epm
View file @
78dda5ed
...
...
@@ -321,6 +321,9 @@ check_command()
mark
)
# HELPCMD: mark package as manually or automatically installed (see epm mark --help)
epm_cmd
=
mark
;;
history
)
# HELPCMD: show a log of actions taken by the software management
epm_cmd
=
history
;;
autoorphans|--orphans
)
# HELPCMD: remove all packages not from the repository
epm_cmd
=
autoorphans
;;
...
...
bin/epm-history
0 → 100644
View file @
78dda5ed
#!/bin/sh
#
# Copyright (C) 2023 Etersoft
# Copyright (C) 2023 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
epm_history
()
{
[
-z
"
$*
"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
apt-dpkg
)
docmd less /var/log/dpkg.log
;;
dnf-rpm
)
sudocmd dnf
history
;;
zypper-rpm
)
less /var/log/zypp/history
;;
pacman
)
docmd less /var/log/pacman.log
;;
emerge
)
docmd less /var/log/portage
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
bin/yum
View file @
78dda5ed
...
...
@@ -157,7 +157,7 @@ check_command()
exit
0
;;
history
|
hist
)
# HELPCMD: Display, or use, the transaction history
fatal
"Is not supported"
epm_cmd
=
history
;;
info
)
# HELPCMD: Display details about a package or group of packages
epm_cmd
=
info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment