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
9956f583
Commit
9956f583
authored
5 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addrepo: add support for dnf, add support for epel repo add
parent
16a6e203
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
epm-addrepo
bin/epm-addrepo
+25
-2
No files found.
bin/epm-addrepo
View file @
9956f583
#!/bin/sh
#
# Copyright (C) 2012, 2017 Etersoft
# Copyright (C) 2012, 2017 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012, 2017
, 2019
Etersoft
# Copyright (C) 2012, 2017
, 2019
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
...
...
@@ -19,6 +19,24 @@
load_helper epm-sh-altlinux
__epm_addrepo_rhel
()
{
local
repo
=
"
$@
"
if
[
-z
"
$repo
"
]
;
then
echo
"Add repo."
echo
"1. Use with repository URL, f.i. http://www.example.com/example.repo"
echo
"2. Use with epel to add EPEL repository"
return
1
fi
case
"
$1
"
in
epel
)
epm
install
epel-release
return
1
;;
esac
return
0
}
__epm_addrepo_altlinux
()
{
local
repo
=
"
$@
"
...
...
@@ -114,8 +132,13 @@ case $PMTYPE in
;;
yum-rpm
)
assure_exists yum-utils
__epm_addrepo_rhel
"
$repo
"
||
return
sudocmd yum-config-manager
--add-repo
"
$repo
"
;;
dnf-rpm
)
__epm_addrepo_rhel
"
$repo
"
||
return
sudocmd dnf config-manager
--add-repo
"
$repo
"
;;
urpm-rpm
)
sudocmd urpmi.addmedia
"
$repo
"
;;
...
...
This diff is collapsed.
Click to expand it.
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