check if kernel-headers is installed.
This commit is contained in:
parent
4435719ce0
commit
ee0b9e47bb
2 changed files with 14 additions and 1 deletions
12
install_cachyos_kernel.sh
Executable file
12
install_cachyos_kernel.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
PACKAGE_NAME="kernel-headers"
|
||||
|
||||
if rpm -q $PACKAGE_NAME &> /dev/null; then
|
||||
echo "Package '$PACKAGE_NAME' is installed."
|
||||
else
|
||||
echo "Package '$PACKAGE_NAME' is not installed."
|
||||
PACKAGE_NAME=""
|
||||
fi
|
||||
|
||||
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra $PACKAGE_NAME --install kernel-cachyos-lto
|
||||
Loading…
Add table
Add a link
Reference in a new issue