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
834440f3
Commit
834440f3
authored
Dec 20, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: and Uncom, MSVSphere to package manager detection
parent
c54df9fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
distr_info
bin/distr_info
+3
-2
No files found.
bin/distr_info
View file @
834440f3
...
@@ -133,6 +133,7 @@ pkgvendor()
...
@@ -133,6 +133,7 @@ pkgvendor()
#which pkcon 2>/dev/null >/dev/null && info "You can run $ PMTYPE=packagekit epm to use packagekit backend"
#which pkcon 2>/dev/null >/dev/null && info "You can run $ PMTYPE=packagekit epm to use packagekit backend"
# Print package manager (need DISTRIB_ID, DISTRIB_RELEASE vars)
# Print package manager (need DISTRIB_ID, DISTRIB_RELEASE vars)
# used in package manager detection via distro name
pkgmanager
()
pkgmanager
()
{
{
local
CMD
local
CMD
...
@@ -154,7 +155,7 @@ case $DISTRIB_ID in
...
@@ -154,7 +155,7 @@ case $DISTRIB_ID in
PCLinux
)
PCLinux
)
CMD
=
"apt-rpm"
CMD
=
"apt-rpm"
;;
;;
Ubuntu|Debian|Mint|OSNovaLinux|AstraLinux
*
|
Elbrus
)
Ubuntu|Debian|Mint|OSNovaLinux|
Uncom|
AstraLinux
*
|
Elbrus
)
CMD
=
"apt-dpkg"
CMD
=
"apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
#is_command snappy && CMD=snappy
#is_command snappy && CMD=snappy
...
@@ -185,7 +186,7 @@ case $DISTRIB_ID in
...
@@ -185,7 +186,7 @@ case $DISTRIB_ID in
ArchLinux|ManjaroLinux
)
ArchLinux|ManjaroLinux
)
CMD
=
"pacman"
CMD
=
"pacman"
;;
;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS
)
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS
|MSVSphere
)
CMD
=
"dnf-rpm"
CMD
=
"dnf-rpm"
is_command dnf
||
CMD
=
"yum-rpm"
is_command dnf
||
CMD
=
"yum-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"CentOS/7"
]
&&
CMD
=
"yum-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"CentOS/7"
]
&&
CMD
=
"yum-rpm"
...
...
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