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
ac481f27
Commit
ac481f27
authored
Jul 20, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve commands
parent
e1882cb0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
24 deletions
+25
-24
epm-clean
bin/epm-clean
+6
-16
epm-install
bin/epm-install
+8
-0
epm-query
bin/epm-query
+5
-6
epm-update
bin/epm-update
+4
-1
epm-upgrade
bin/epm-upgrade
+2
-1
No files found.
bin/epm-clean
View file @
ac481f27
...
...
@@ -18,35 +18,25 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# copied from korinf/tools/run-script/scripts/search
epm_clean
()
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run search without names"
case
$DISTRNAME
in
"ALTLinux"
|
"Ubuntu"
|
"Debian"
|
"PCLinux"
)
CMD
=
"apt-get clean"
MASK
=
"*.deb"
docmd
$SUDO
apt-get clean
;;
"LinuxXP"
|
"Fedora"
|
"ASPLinux"
|
"CentOS"
|
"RHEL"
|
"Scientific"
)
CMD
=
"yum clean packages"
MASK
=
"*.rpm"
docmd
$SUDO
yum clean all
docmd
$SUDO
yum makecache
;;
"Mandriva"
)
CMD
=
"rm -f /var/cache/urpmi/rpms/*.rpm"
MASK
=
"*.rpm"
docmd
$SUDO
urpmi
--clean
;;
"SUSE"
)
CMD
=
"zypper clean"
MASK
=
"*.rpm"
docmd
$SUDO
zypper clean
;;
*
)
RET
=
1
CMD
=
"echo
\"
Do not known install command for DISTRNAME
$DISTRNAME
\"
"
fatal
"Do not known command for
$PMTYPE
"
;;
esac
docmd
$CMD
$pkg_filenames
}
bin/epm-install
View file @
ac481f27
...
...
@@ -35,6 +35,9 @@ epm_install_names()
zypper-rpm
)
docmd
$SUDO
zypper
install
$@
return
;;
pkg_add
)
docmd
$SUDO
pkg_add
-r
$@
return
;;
*
)
fatal
"Do not known install command for
$PMTYPE
"
;;
...
...
@@ -57,6 +60,9 @@ epm_ni_install_names()
zypper-rpm
)
yes
| docmd
$SUDO
zypper
--non-interactive
install
$@
return
;;
pkg_add
)
docmd
$SUDO
pkg_add
-r
$@
return
;;
*
)
fatal
"Do not known appropriate install command for
$PMTYPE
"
;;
...
...
@@ -75,6 +81,8 @@ epm_install_files()
ALTLinux|PCLinux
)
docmd
$SUDO
apt-get
install
$@
return
;;
FreeBSD
)
docmd
$SUDO
pkg_add
$@
Ubuntu|Debian|Mint
)
docmd
$SUDO
dpkg
-i
$@
docmd
$SUDO
apt-get
-f
install
...
...
bin/epm-query
View file @
ac481f27
...
...
@@ -26,23 +26,22 @@ epm_query()
case
$DISTRNAME
in
"ALTLinux"
|
"PCLinux"
)
CMD
=
"rpm -q
a
"
CMD
=
"rpm -q"
;;
"Ubuntu"
|
"Debian"
)
CMD
=
"dpkg -l"
;;
"LinuxXP"
|
"Fedora"
|
"ASPLinux"
|
"CentOS"
|
"RHEL"
|
"Scientific"
)
CMD
=
"rpm -q
a
"
CMD
=
"rpm -q"
;;
"Mandriva"
)
CMD
=
"rpm -q
a
"
CMD
=
"rpm -q"
;;
"SUSE"
)
CMD
=
"rpm -q
a
"
CMD
=
"rpm -q"
;;
*
)
RET
=
1
CMD
=
"echo
\"
Do not known query command for DISTRNAME
$DISTRNAME
\"
"
fatal
"Do not known command for
$PMTYPE
"
;;
esac
...
...
bin/epm-update
View file @
ac481f27
...
...
@@ -30,7 +30,10 @@ case $PMTYPE in
"apt-dpkg"
)
docmd
$SUDO
apt-get update
||
exit
docmd
$SUDO
apt-get
-f
install
||
exit
docmd
$SUDO
apt-get autoremove
#docmd $SUDO apt-get autoremove
;;
urpm-rpm
)
docmd
$SUDO
urpmi.update
-a
;;
# skip, will do it automagically
# "LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific")
...
...
bin/epm-upgrade
View file @
ac481f27
...
...
@@ -32,7 +32,8 @@ epm_upgrade()
CMD
=
"yum update"
;;
urpm-rpm
)
CMD
=
"urpmi --auto-update"
# or --auto-update
CMD
=
"urpmi --auto-select"
;;
zypper-rpm
)
CMD
=
"zypper update"
...
...
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