Supprimer Rendre public Rendre privé Add tags Delete tags
  Ajouter un tag   Annuler
  Supprimer le tag   Annuler
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Connexion

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 Permalien
cluster icon
  • Bash : First Line of Script #!/bin/bash → defines the shell interpreter Comments Use # for commenting Common Elements Commands: echo, cp, etc. Statement...
  • File Display Commands / Filters / Text Processing Input : File Display Commands cat → Show entire content cat -A → Show non-printable characters more → Paginate output less → Same as more but allows navigatio...
  • 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...
  • Vi Editor : Vi Editor Commands i → insert mode ESC → escape to command mode r → replace mode x → delete character dd → delete line yy → copy line p → paste v → v...
  • Firewall : Enable firewall firewall-config → GUI for options add ports firewall-cmd → CLI cat /etc/sysconfig/iptables-config cat /etc/firewalld/firewalld.co...


(110)
Filtrer par liens sans tag
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli