Robert

W-BodyTech

WBT+ Member
Content Creator
Reputation: 64%
Joined
Feb 23, 2023
Messages
313
Post Content:


Team-Nocturnal Fedora Update Script
tn_banner.png

Automated Updates for DNF, Flatpak, Snap, Pip, Cargo, NPM, and Secure Boot NVIDIA Signing​



This script is designed for Fedora users who want to quickly and easily update their system and related package managers in one go โ€” no manual typing needed.
It even detects Secure Boot and will handle MOK creation, import, and NVIDIA module signing automatically.



โšก Quick Install & Use (One-Liner)
Paste this into Konsole to download, set permissions, and install tn-update:
Bash:
curl -Lo ~/tn_xs_fedora_update_all_script.sh "https://raw.githubusercontent.com/XsMagical/Fedora-Tools/refs/heads/main/tn_xs_fedora_update_all_script.sh" &&
chmod +x ~/tn_xs_fedora_update_all_script.sh &&
mkdir -p ~/.local/bin &&
mv ~/tn_xs_fedora_update_all_script.sh ~/.local/bin/tn-update &&
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc &&
source ~/.bashrc &&
tn-update
Replace the URL above with the actual link to your script attachment.



๐Ÿ“ฆ What It Does

  • [] Updates Fedora via DNF
    [] Updates Flatpak apps and runtimes (and prunes old runtimes)
    [] Updates Snap packages (if installed)
    [] Updates Pip Python packages
    [] Updates Cargo Rust packages
    [] Updates Global NPM Node.js packages
    [] Detects and handles Secure Boot
    [] Creates and enrolls MOK key if needed
  • Rebuilds and signs NVIDIA kernel modules



๐Ÿ“ฅ Manual Install Method
If you prefer the manual method:

Download the attached script:


Run these commands in Konsole:
Bash:
    chmod +x ~/Downloads/tn_xs_fedora_update_all_script.sh
    mkdir -p ~/scripts
    mv ~/Downloads/tn_xs_fedora_update_all_script.sh ~/scripts/

Run manually:
Bash:
~/scripts/tn_xs_fedora_update_all_script.sh

(Optional) Add tn-update shortcut:
Bash:
    install -Dm755 ~/scripts/tn_xs_fedora_update_all_script.sh ~/.local/bin/tn-update
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc

Then you can just run:
Code:
tn-update



๐Ÿ” Secure Boot Info
If Secure Boot is enabled, the script will:

  • [] Create a MOK keypair (one time only)
    [] Import it into the MOK manager
    [] Prompt you to enroll it at next boot (blue MOK screen)
    [] Sign NVIDIA modules automatically after each kernel update


โœ… Example Output
Code:
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—
โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘
   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘
   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘
   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
   โ•šโ•โ•   โ•šโ•โ•  โ•šโ•โ•โ•โ•
Team-Nocturnal.com Fedora Update Script by XsMagical

==> Updating via DNF...
Repositories loaded.
Nothing to do.

==> Updating Flatpak apps and runtimes...
Nothing to do.

==> Secure Boot detected: secureboot enabled
==> Signing NVIDIA modules...
โœ… All updates complete!



๐Ÿ’ฌ Questions or issues?
Reply below or visit team-nocturnal.com
 

Attachments

Similar content Most view View more
Back
Top