Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Package Management/shaare/Ceve1g

  • linux
  • linux

System Updates & Software Install

  • dnf (yum) → RedHat → /etc/yum.repos.d

  • apt-get → Debian

  • rpm → RedHat package management

    • standalone package to install locally
    • hard to install extra dependency
  • dnf install mypackage

  • rpm -qa | grep mypackage

    • check if package installed
  • rpm -ihv /tmp/package.rpm

    • install
  • rpm -e packagename

    • remove
  • dnf remove package

  • dnf update -y

    • update everything (preserves old one)
  • dnf upgrade

    • delete and replace with new

Advanced Package Management

  • rpm -qa | grep mypackage

    • mypackage-1.0.6
  • rpm -qc mypackage-1.0.6

    • configuration files
  • which mypackage

    • /usr/bin/mypackage
  • rpm -qf /usr/bin/mypackage

    • mypackage-1.0.6

Rollback Update & Patch

  • dnf history undo mypackageid
  • dnf update → keep the old package
  • dnf history → get id
8 months ago Permalink
cluster icon
  • Tuned : Tweaks with Tuned / Podman Tweaks with Tuned systemctl enable tuned tuned-adm active check which profile is active tuned-adm list list all prof...
  • Journalctl : journalctl journalctl -u sshd show only log for sshd logger hello write in syslog journalctl -f log is live nano /etc/systemd/journald.c...
  • Linux File Ownership, ACLs, and I/O Redirects : File Ownership chown → Change ownership chgrp → Change group Access Control List (ACL) setfacl → Set file ACL getfacl → Get file ACL Add Permissi...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...
  • System Run Level and Boot Process : System Run Level init 0 → shutdown init 1 → single user mode → troubleshoot init 6 → reboot the system init 2 → multiuser without networking init 3 →...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community