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
Nurlan
eepm
Commits
83a99bed
Commit
83a99bed
authored
Feb 12, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more pacman commands
parent
f6169e0b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
6 deletions
+26
-6
epm-addrepo
bin/epm-addrepo
+2
-0
epm-changelog
bin/epm-changelog
+2
-1
epm-check
bin/epm-check
+3
-0
epm-clean
bin/epm-clean
+3
-0
epm-filelist
bin/epm-filelist
+2
-1
epm-info
bin/epm-info
+1
-0
epm-remove
bin/epm-remove
+8
-2
epm-requires
bin/epm-requires
+5
-2
No files found.
bin/epm-addrepo
View file @
83a99bed
...
...
@@ -40,6 +40,8 @@ case $PMTYPE in
;;
pacman
)
echo
"You need manually add repo to /etc/pacman.conf"
# Only for alone packages:
#sudocmd repo-add $pkg_filenames
;;
npackd
)
docmd npackdcl add-repo
--url
=
$pkg_filenames
...
...
bin/epm-changelog
View file @
83a99bed
...
...
@@ -51,9 +51,10 @@ __epm_changelog_local_names()
;;
emerge
)
docmd view /usr/portage/category/
$1
/ChangeLog | less
# docmd equery changes -f $1 | less
;;
pacman
)
docmd pacman
-Qc
package
| less
docmd pacman
-Qc
$1
| less
;;
*
)
fatal
"Do not known command for
$PMTYPE
"
...
...
bin/epm-check
View file @
83a99bed
...
...
@@ -49,6 +49,9 @@ case $PMTYPE in
docmd rpm
-Va
--nofiles
--nodigest
;;
pacman
)
sudocmd revdep-rebuild
;;
urpm-rpm
)
sudocmd urpme
--auto-orphans
;;
...
...
bin/epm-clean
View file @
83a99bed
...
...
@@ -33,6 +33,9 @@ case $PMTYPE in
urpm-rpm
)
sudocmd urpmi
--clean
;;
pacman
)
sudocmd pacman
-Sc
;;
zypper-rpm
)
sudocmd zypper clean
;;
...
...
bin/epm-filelist
View file @
83a99bed
...
...
@@ -63,7 +63,8 @@ __epm_filelist_name()
CMD
=
"rpm -ql"
;;
pacman
)
CMD
=
"pacman -Ql"
docmd pacman
-Ql
$pkg_names
|
sed
-e
"s|.* ||g"
return
;;
slackpkg
)
is_installed
$pkg_names
||
fatal
"Query filelist for non installed packages does not realized"
...
...
bin/epm-info
View file @
83a99bed
...
...
@@ -56,6 +56,7 @@ case $PMTYPE in
docmd zypper info
$pkg_names
;;
pacman
)
is_installed
$pkg_names
&&
docmd pacman
-Qi
$pkg_names
&&
return
docmd pacman
-Si
$pkg_names
;;
npackd
)
...
...
bin/epm-remove
View file @
83a99bed
...
...
@@ -34,6 +34,9 @@ epm_remove_low()
emerge
)
sudocmd emerge
--unmerge
$@
return
;;
pacman
)
sudocmd pacman
-R
$@
return
;;
slackpkg
)
sudocmd /sbin/removepkg
$@
return
;;
...
...
@@ -63,7 +66,7 @@ epm_remove_names()
sudocmd emerge
-aC
$@
return
;;
pacman
)
sudocmd pacman
-R
$@
sudocmd pacman
-R
s
$@
return
;;
yum-rpm
)
sudocmd yum remove
$@
...
...
@@ -103,7 +106,7 @@ epm_remove_nonint()
sudocmd urpme
--auto
$@
return
;;
pacman
)
sudocmd pacman
-R
--noconfirm
$@
sudocmd pacman
-R
s
--noconfirm
$@
return
;;
yum-rpm
)
sudocmd yum
-y
remove
$@
...
...
@@ -130,6 +133,9 @@ epm_print_remove_command()
pkgsrc
)
echo
"pkg_delete -r
$@
"
;;
pacman
)
echo
"pacman -R
$@
"
;;
emerge
)
echo
"emerge --unmerge
$@
"
;;
...
...
bin/epm-requires
View file @
83a99bed
...
...
@@ -22,7 +22,7 @@ epm_requires()
local
CMD
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run query without names"
# by
file packag
e
# by
package fil
e
case
$PMTYPE
in
apt-rpm|urpm-rpm|zypper-rpm|yum-rpm
)
CMD
=
"rpm -q --requires -p"
...
...
@@ -39,7 +39,7 @@ esac
[
-n
"
$pkg_files
"
]
&&
docmd
$CMD
$pkg_files
# by
fil
e name
# by
packag
e name
case
$PMTYPE
in
apt-rpm|urpm-rpm|zypper-rpm
)
# FIXME: use hi level commands
...
...
@@ -48,6 +48,9 @@ case $PMTYPE in
yum-rpm
)
CMD
=
"yum deplist"
;;
pacman
)
CMD
=
"pactree"
;;
apt-dpkg
)
CMD
=
"apt-cache depends"
;;
...
...
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