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
975ebcd4
Commit
975ebcd4
authored
Jul 19, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: hide extra requires
parent
8264ce7c
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
29 additions
and
29 deletions
+29
-29
distr_info
bin/distr_info
+4
-4
epm-addrepo
bin/epm-addrepo
+1
-1
epm-autoorphans
bin/epm-autoorphans
+3
-3
epm-autoremove
bin/epm-autoremove
+4
-4
epm-list_available
bin/epm-list_available
+1
-1
epm-list_upgradable
bin/epm-list_upgradable
+1
-1
epm-packages
bin/epm-packages
+1
-1
epm-release_upgrade
bin/epm-release_upgrade
+1
-1
epm-repodisable
bin/epm-repodisable
+1
-1
epm-requires
bin/epm-requires
+2
-2
epm-sh-functions
bin/epm-sh-functions
+1
-1
epm-upgrade
bin/epm-upgrade
+1
-1
epm-whatdepends
bin/epm-whatdepends
+1
-1
switch-to-nvidia.sh
prescription.d/switch-to-nvidia.sh
+5
-5
teamspeak3.sh
repack.d/teamspeak3.sh
+1
-1
viber.sh
repack.d/viber.sh
+1
-1
No files found.
bin/distr_info
View file @
975ebcd4
...
...
@@ -635,8 +635,8 @@ elif [ "$(uname)" = "Linux" ] && is_command guix ; then
# fixme: move to up
elif
[
"
$(
uname
)
"
=
"Linux"
]
&&
[
-x
$ROOTDIR
/system/bin/getprop
]
;
then
DISTRIB_ID
=
"Android"
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/system.build.version.release\]/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
DISTRIB_RELEASE
=
$(
a
=
''
getprop |
awk
-F
": "
'/system.build.version.release\]/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
[
-n
"
$DISTRIB_RELEASE
"
]
||
DISTRIB_RELEASE
=
$(
a
=
''
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
|
head
-n1
)
elif
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
...
...
@@ -768,7 +768,7 @@ get_bit_size()
{
local
DIST_BIT
DIST_BIT
=
"
$(
getconf LONG_BIT 2>/dev/null
)
"
DIST_BIT
=
"
$(
a
=
getconf LONG_BIT 2>/dev/null
)
"
if
[
-n
"
$DIST_BIT
"
]
;
then
echo
"
$DIST_BIT
"
return
...
...
@@ -817,7 +817,7 @@ get_memory_size()
[
-r
/proc/meminfo
]
&&
detected
=
$((
`
cat
/proc/meminfo |
grep
MemTotal |
awk
'{print $2}'
`
/
1024
))
;;
solaris
)
detected
=
$(
prtconf |
grep
Memory |
sed
-e
"s|Memory size:
\(
[0-9][0-9]*
\)
Megabyte.*|
\1
|"
)
#"
detected
=
$(
a
=
''
prtconf |
grep
Memory |
sed
-e
"s|Memory size:
\(
[0-9][0-9]*
\)
Megabyte.*|
\1
|"
)
#"
;;
# *)
# fatal "Unsupported OS $DIST_OS"
...
...
bin/epm-addrepo
View file @
975ebcd4
...
...
@@ -387,7 +387,7 @@ __epm_addrepo_deb()
assure_exists apt-add-repository software-properties-common
local
ad
=
"
$DISTRARCH
"
# TODO: move to distro_info
local
nd
=
"
$(
lsb_release
-cs
)
"
local
nd
=
"
$(
a
=
lsb_release
-cs
)
"
local
repo
=
"
$*
"
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
...
...
bin/epm-autoorphans
View file @
975ebcd4
...
...
@@ -86,7 +86,7 @@ case $PMTYPE in
docmd epm upgrade
assure_exists package-cleanup yum-utils
showcmd package-cleanup
--orphans
local
PKGLIST
=
$(
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
local
PKGLIST
=
$(
a
=
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
docmd epm remove
$dryrun
$PKGLIST
;;
dnf-rpm
)
...
...
@@ -94,7 +94,7 @@ case $PMTYPE in
docmd epm upgrade
assure_exists package-cleanup dnf-utils
showcmd package-cleanup
--orphans
local
PKGLIST
=
$(
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
local
PKGLIST
=
$(
a
=
package-cleanup
-q
--orphans
|
grep
-v
"^eepm-"
)
docmd epm remove
$dryrun
$PKGLIST
;;
urpm-rpm
)
...
...
@@ -137,7 +137,7 @@ case $PMTYPE in
# For zypper < 1.9.2: zypper se -si | grep 'System Packages'
sudocmd zypper packages
--orphaned
# FIXME: x86_64/i586 are duplicated
local
PKGLIST
=
$(
zypper packages
--orphaned
|
tail
-n
+5 |
cut
-d
\|
-f
3 |
sort
-u
)
local
PKGLIST
=
$(
a
=
zypper packages
--orphaned
|
tail
-n
+5 |
cut
-d
\|
-f
3 |
sort
-u
)
docmd epm remove
$dryrun
--clean-deps
$PKGLIST
;;
xbps
)
...
...
bin/epm-autoremove
View file @
975ebcd4
...
...
@@ -42,7 +42,7 @@ __epm_autoremove_altrpm_pp()
local
flag
=
showcmd
"apt-cache list-nodeps | grep -E --
\"
$libexclude
\"
"
fullpkgs
=
$(
apt-cache list-nodeps |
grep
-E
--
"
$libexclude
"
)
fullpkgs
=
$(
a
=
a
pt-cache list-nodeps |
grep
-E
--
"
$libexclude
"
)
pkgs
=
$(
skip_manually_installed
$fullpkgs
)
if
[
-n
"
$dryrun
"
]
;
then
...
...
@@ -110,7 +110,7 @@ __epm_autoremove_altrpm_lib()
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
showcmd
"apt-cache list-nodeps | grep -E --
\"
$libgrep
\"
"
fullpkgs
=
$(
apt-cache list-nodeps |
grep
-E
--
"
$libgrep
"
\
fullpkgs
=
$(
a
=
a
pt-cache list-nodeps |
grep
-E
--
"
$libgrep
"
\
|
sed
-e
"s/[-
\.
]32bit
$/
/g"
\
|
grep
-E
-v
--
"
$develrule
"
\
|
grep
-E
-v
--
"-(debuginfo)$"
\
...
...
@@ -297,7 +297,7 @@ case $PMTYPE in
# shellcheck disable=SC2046
docmd package-cleanup
--leaves
$(
subst_option non_interactive
--assumeyes
)
# FIXME: package-cleanup have to use stderr for errors
local
PKGLIST
=
$(
package-cleanup
-q
--leaves
|
grep
-v
"^eepm-"
)
local
PKGLIST
=
$(
a
=
package-cleanup
-q
--leaves
|
grep
-v
"^eepm-"
)
[
-n
"
$PKGLIST
"
]
||
break
docmd epm remove
$PKGLIST
done
...
...
@@ -339,7 +339,7 @@ case $PMTYPE in
assure_exists zypper zypper 1.9.3
sudocmd zypper packages
--unneeded
# FIXME: x86_64/i586 are duplicated
local
PKGLIST
=
$(
zypper packages
--unneeded
|
tail
-n
+5 |
cut
-d
\|
-f
3 |
sort
-u
)
local
PKGLIST
=
$(
a
=
zypper packages
--unneeded
|
tail
-n
+5 |
cut
-d
\|
-f
3 |
sort
-u
)
showcmd epm remove
--clean-deps
$PKGLIST
;;
xbps
)
...
...
bin/epm-list_available
View file @
975ebcd4
...
...
@@ -22,7 +22,7 @@ load_helper epm-sh-warmup
__aptcyg_print_full
()
{
#showcmd apt-cyg show
local
VERSION
=
$(
apt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
local
VERSION
=
$(
a
=
a
pt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
echo
"
$1
-
$VERSION
"
}
...
...
bin/epm-list_upgradable
View file @
975ebcd4
...
...
@@ -22,7 +22,7 @@ load_helper epm-sh-warmup
__aptcyg_print_full
()
{
#showcmd apt-cyg show
local
VERSION
=
$(
apt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
local
VERSION
=
$(
a
=
a
pt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
echo
"
$1
-
$VERSION
"
}
...
...
bin/epm-packages
View file @
975ebcd4
...
...
@@ -79,7 +79,7 @@ esac
__aptcyg_print_full
()
{
#showcmd apt-cyg show
local
VERSION
=
$(
apt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
local
VERSION
=
$(
a
=
a
pt-cyg show
"
$1
"
|
grep
-m1
"^version: "
|
sed
-e
"s|^version: ||g"
)
echo
"
$1
-
$VERSION
"
}
...
...
bin/epm-release_upgrade
View file @
975ebcd4
...
...
@@ -48,7 +48,7 @@ assure_safe_run()
return
fi
res
=
"
$(
busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager KillUserProcesses
)
"
res
=
"
$(
a
=
busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager KillUserProcesses
)
"
if
[
"
$res
"
=
"b false"
]
;
then
message
"Good news: systemd-logind will not kill your screen processes (KillUserProcesses=false)"
return
...
...
bin/epm-repodisable
View file @
975ebcd4
...
...
@@ -34,7 +34,7 @@ __epm_repodisable_alt()
[
-z
"
$rl
"
]
&&
warning
'Cant find $1 entries in the repos (see # epm repolist output)'
&&
return
1
fi
echo
"
$rl
"
|
while
read
rp
;
do
[
-n
"
$dryrun
"
]
&&
messag
w
'will comment $rp'
&&
continue
[
-n
"
$dryrun
"
]
&&
messag
e
'will comment $rp'
&&
continue
sed
-i
-e
"s|^
\(
$(
sed_escape
"
$rl
"
)
\)
|#
\1
|"
$alt_LISTS
done
}
...
...
bin/epm-requires
View file @
975ebcd4
...
...
@@ -94,7 +94,7 @@ epm_requires_files()
;;
eopkg
)
showcmd eopkg info
$fl
LC_ALL
=
C eopkg info
$fl
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
LC_ALL
=
C
a
=
''
eopkg info
$fl
|
grep
"^Dependencies"
|
head
-n1
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
;;
ELF
)
__epm_elf_requires
$fl
...
...
@@ -189,7 +189,7 @@ case $PMTYPE in
;;
eopkg
)
showcmd eopkg info
$pkg_names
LC_ALL
=
C eopkg info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
LC_ALL
=
C
a
=
''
eopkg info
$pkg_names
|
grep
"^Dependencies"
|
sed
-e
"s|Dependencies[[:space:]]*: ||"
return
;;
xbps
)
...
...
bin/epm-sh-functions
View file @
975ebcd4
...
...
@@ -446,7 +446,7 @@ set_sudo()
# start error section
SUDO_TESTED
=
"1"
if
is_command doas
&&
doas
-C
/etc/doas.conf
>
/dev/null 2>&1
;
then
if
is_command doas
&&
a
=
''
doas
-C
/etc/doas.conf
>
/dev/null 2>&1
;
then
SUDO
=
"doas"
SUDO_TESTED
=
"0"
return
"
$SUDO_TESTED
"
...
...
bin/epm-upgrade
View file @
975ebcd4
...
...
@@ -179,7 +179,7 @@ epm_upgrade()
;;
homebrew
)
#CMD="brew upgrade"
sudocmd brew upgrade
$(
brew outdated
)
sudocmd brew upgrade
$(
a
=
''
brew outdated
)
return
;;
opkg
)
...
...
bin/epm-whatdepends
View file @
975ebcd4
...
...
@@ -96,7 +96,7 @@ case $PMTYPE in
eopkg
)
showcmd eopkg info
$pkg
# eopkg info prints it only from repo info
LC_ALL
=
C eopkg info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
LC_ALL
=
C
a
=
eopkg info
$pkg
|
grep
"^Reverse Dependencies"
|
sed
-e
"s|Reverse Dependencies[[:space:]]*: ||"
|
grep
-v
"^$"
return
;;
xbps
)
...
...
prescription.d/switch-to-nvidia.sh
View file @
975ebcd4
...
...
@@ -12,7 +12,7 @@ assure_root
if
[
"
$(
epm print info
-s
)
"
=
"rosa"
]
;
then
epm assure kroko-cli auto-krokodil-cli
||
fatal
kroko-cli autoinstall
a
=
''
kroko-cli autoinstall
exit
fi
...
...
@@ -40,7 +40,7 @@ check_run_kernel () {
}
check_old_nvidia
()
{
local
lspci_output
=
$(
lspci
-k
2>/dev/null |
grep
-E
'VGA|3D'
|
tr
-d
'\n'
)
local
lspci_output
=
$(
a
=
lspci
-k
2>/dev/null |
grep
-E
'VGA|3D'
|
tr
-d
'\n'
)
# Fermi, Kepler and Tesla
[[
"
$lspci_output
"
==
*
GF[0-9]
*
]]
||
[[
"
$lspci_output
"
==
*
GK[0-9]
*
]]
[[
"
$lspci_output
"
==
*
G[0-9]
*
]]
||
[[
"
$lspci_output
"
==
*
GT[0-9]
*
]]
||
[[
"
$lspci_output
"
==
*
MCP[0-9]
*
]]
&&
return
0
return
1
...
...
@@ -97,13 +97,13 @@ else
fi
# Активируем службы управления питания NVIDIA, без этих служб будет некоректно работать уход в сон
systemctl
enable
nvidia-suspend.service nvidia-resume.service nvidia-hibernate.service
a
=
systemctl
enable
nvidia-suspend.service nvidia-resume.service nvidia-hibernate.service
echo
"options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp"
>
/etc/modprobe.d/nvidia_memory_allocation.conf
# Запускаем регенерацию initrd
make-initrd
a
=
make-initrd
# Обновляем grub
update-grub
a
=
update-grub
echo
"Done. Just you need reboot your system to use nVidia proprietary drivers."
repack.d/teamspeak3.sh
View file @
975ebcd4
...
...
@@ -41,7 +41,7 @@ libevent="$(get_libevent)"
[
-n
"
$libevent
"
]
||
fatal
"libevent is missed, install it before"
if
[
"
$libevent
"
!=
"libevent-2.1.so.7"
]
&&
epm assure patchelf
;
then
patchelf
--replace-needed
libevent-2.1.so.7
$libevent
.
$PRODUCTDIR
/libQt5WebEngineCore.so.5
a
=
patchelf
--replace-needed
libevent-2.1.so.7
$libevent
.
$PRODUCTDIR
/libQt5WebEngineCore.so.5
# Fix libquazip1-qt5.so name
#patchelf --replace-needed libquazip.so libquazip1-qt5.so.1.0.0 .$PRODUCTDIR/ts3client_linux_amd64
fi
...
...
repack.d/viber.sh
View file @
975ebcd4
...
...
@@ -32,7 +32,7 @@ libevent="$(get_libevent)"
[
-n
"
$libevent
"
]
||
fatal
"libevent is missed, install it before"
if
[
"
$libevent
"
!=
"libevent-2.1.so.7"
]
&&
epm assure patchelf
;
then
patchelf
--replace-needed
libevent-2.1.so.7
$libevent
.
$PRODUCTDIR
/lib/libQt6WebEngineCore.so.6
a
=
patchelf
--replace-needed
libevent-2.1.so.7
$libevent
.
$PRODUCTDIR
/lib/libQt6WebEngineCore.so.6
fi
...
...
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