fedora Fedora

Overview

Fedora is a Linux distribution developed by the community-supported Fedora Project and owned by Red Hat, a subsidiary of IBM.

fedora_screen

Intsalling Atom repository

rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'

Tip

Install terminal in Atom with apm, Atom Package Manager

apm update
apm list
apm search terminal
apm install platformio-ide-terminal

Instatling Docker

dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo

Danger

Fedora 31 Docker Issue
Red Hat Bugzilla – Bug 1757078.
To recap, append systemd.unified_cgroup_hierarchy=0 to GRUB_CMDLINE_LINUX in /etc/default/grub, then reboot.
wink

Installing moby-engine

dnf remove "docker-*"
dnf config-manager --disable "docker-*"
grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"\n
firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --permanent --zone=FedoraWorkstation --add-masquerade
dnf install moby-engine docker-compose
docker-compose version

Installing RPM Fusion

dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

RPM Cheat Sheet

# Install package
rpm -ivh {rpm-file}
rpm -ivh --test mozilla-mail-1.7.5-17.i586.rpm

# Upgrade package
rpm -Uvh {rpm-file}  Upgrade package
rpm -Uvh --test mozilla-mail-1.7.6-12.i586.rpm

# Erase/remove/ an installed package (without checking for dependencies)
rpm -ev {package}
rpm -ev --nodeps {package}

# Display list all installed packages (recently installed)
rpm -qa
rpm -qa --last
rpm -qa | less

# Display installed information along with package version and short description
rpm -qi {package}
rpm -qi evolution

# Find out what package a file belongs to i.e. find what package owns the file
rpm -qf {/path/to/file}
rpm -qf /etc/passwd
rpm -qf /bin/bash

# Display list of configuration file(s) for a package or a command
rpm -qc {package-name}
rpm -qc httpd
rpm -qcf {/path/to/file}
rpm -qcf /usr/X11R6/bin/xeyes

# Find out what dependencies a rpm file has
rpm -qpR {.rpm-file}
rpm -qpR mediawiki-1.4rc1-4.i586.rpm
rpm -qR {package}
rpm -qR bash

# List file in package
rpm -ql evolution

DNF Cheat Sheet

# Informations
dnf check-update
dnf info `package`
dnf list installed
dnf provides "/usr/bin/shellcheck"

# History
dnf history list
dnf history info 12
dnf history undo 12
dnf history redo 12