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
c2f3c920
Commit
c2f3c920
authored
Jul 20, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve command description and add more commands
parent
939af88d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
epm
bin/epm
+16
-9
epm-filelist
bin/epm-filelist
+1
-2
epm-simulate
bin/epm-simulate
+1
-1
No files found.
bin/epm
View file @
c2f3c920
...
@@ -48,15 +48,19 @@ phelp()
...
@@ -48,15 +48,19 @@ phelp()
{
{
echo
"
$Descr
echo
"
$Descr
$Usage
$Usage
Commands:
-i|install
install package(s)
-i|install
install package(s) from remote repositories or from local file
-e|remove
remove package(s)
-e|remove
remove (delete) package(s) from the database and the system
-s|search
search in remote and local package base
-s|search
search in remote package repositories
-qa|list|packages list of installed package(s)
-qa|list|packages list of installed package(s)
-qf
query package(s) owning file
-qf
|which
query package(s) owning file
-q check presence of package(s)
-q check presence of package(s)
update update remote package repository databases
upgrade performs upgrades of package software distributions
Options:
Options:
-v|--verbose verbose mode
-v|--version
--verbose verbose mode
--auto non interactive mode
--auto non interactive mode
-h|--help this help
-h|--help this help
"
"
...
@@ -114,10 +118,10 @@ for opt in "$@" ; do
...
@@ -114,10 +118,10 @@ for opt in "$@" ; do
--auto
)
--auto
)
non_interactive
=
1
non_interactive
=
1
;;
;;
-i
|
install
)
-i
|
install
|
add
)
epm_cmd
=
install
epm_cmd
=
install
;;
;;
-e
|
remov
e
)
-e
|
-P
|
remove|delet
e
)
epm_cmd
=
remove
epm_cmd
=
remove
;;
;;
-qi
|
info
)
-qi
|
info
)
...
@@ -141,12 +145,15 @@ for opt in "$@" ; do
...
@@ -141,12 +145,15 @@ for opt in "$@" ; do
-q
|
installed
)
-q
|
installed
)
epm_cmd
=
query
epm_cmd
=
query
;;
;;
-qf
)
-qf
|
which
)
epm_cmd
=
query_file
epm_cmd
=
query_file
;;
;;
-ql
|
filelist
)
-ql
|
filelist
)
epm_cmd
=
filelist
epm_cmd
=
filelist
;;
;;
check|simulate
)
epm_cmd
=
$opt
;;
*
)
*
)
if
[
-f
"
$opt
"
]
;
then
if
[
-f
"
$opt
"
]
;
then
pkg_files
=
"
$pkgfiles
$opt
"
pkg_files
=
"
$pkgfiles
$opt
"
...
...
bin/epm-filelist
View file @
c2f3c920
...
@@ -41,8 +41,7 @@ case $DISTRNAME in
...
@@ -41,8 +41,7 @@ case $DISTRNAME in
CMD
=
"rpm -ql"
CMD
=
"rpm -ql"
;;
;;
*
)
*
)
RET
=
1
fatal
"Do not known query command for
$PMTYPE
"
CMD
=
"echo
\"
Do not known query command for DISTRNAME
$DISTRNAME
\"
"
;;
;;
esac
esac
...
...
bin/epm-simulate
View file @
c2f3c920
...
@@ -47,7 +47,7 @@ echo $CMD
...
@@ -47,7 +47,7 @@ echo $CMD
epm_simulate
()
epm_simulate
()
{
{
[
-n
"
$pkg_names
"
]
||
fatal
"Run
install
without packages"
[
-n
"
$pkg_names
"
]
||
fatal
"Run
$epm_cmd
without packages"
CMD
=
$(
epm_install_sim
$DISTRNAME
)
CMD
=
$(
epm_install_sim
$DISTRNAME
)
docmd
$SUDO
$CMD
$pkg_names
docmd
$SUDO
$CMD
$pkg_names
...
...
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