Initial Setup#
DNF flags#
1
| echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf
|
1
| echo 'defaultyes=True' | sudo tee -a /etc/dnf/dnf.conf
|
1
| echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf
|
1
| echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
|
or add manually by editing dnf.conf using nano
1
| sudo nano /etc/dnf/dnf.conf
|
Add below lines
1
2
3
4
| deltarpm=True
defaultyes=True
fastestmirror=1
max_parallel_downloads=10
|
Make sure that you added all the above lines by using cat command
1
2
3
4
5
6
7
8
9
10
11
| cat /etc/dnf/dnf.conf
# [main]
# gpgcheck=1
# installonly_limit=3
# clean_requirements_on_remove=True
# best=False
# skip_if_unavailable=True
# deltarpm=true
# defaultyes=True
# fastestmirror=1
# max_parallel_downloads=10
|
OS Update#
Now you update the operating system or check for any new updates available to download
RPM Fusion free and nonfree repos#
- To enable the Free repositories
1
| sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y
|
- To enable the Non-Free repositories
1
| sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
|
GNOME Tweaks#
- Graphical interface for advanced GNOME settings
1
| sudo dnf install gnome-tweak-tool -y
|
1
| sudo dnf install gnome-extensions-app -y
|
- GNOME Shell Extension App Indicator
1
| sudo dnf install gnome-shell-extension-appindicator -y
|
Optional Setup#
Desktop Environment#
For some reason you wish to try other desktop environment or else skip this step
- To check the available desktop environments
- For example: XFCE desktop
1
| dnf install @xfce-desktop-environment
|
1
| dnf remove @xfce-desktop-environment
|
Set hostname#
I rename it for better detectable on my network: fedora
1
| hostnamectl set-hostname fedora
|
Package Management#
Flatpak#
Flatpak is installed by default on Fedora Workstation, but one needs to enable the Flathub store:
1
2
| flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak update
|
Homebrew#
Before starting to install Homebrew, make sure you have glibc and gcc installed.
- These tools can be installed on Fedora with:
1
| sudo dnf groupinstall "Development Tools"
|
1
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
Once finished, run the following commands to add brew to your PATH:
1
| echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bash_profile
|
1
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
- Homebrew collects installation, build error, and operating system version statistics via Google Analytics.
- It is possible to opt out with the command
brew analytics off - Users can view analytics data from the last 30, 90, & 365 days on the Homebrew website.
Snapcraft#
Enable snapd
1
2
3
| sudo dnf install snapd -y
sudo ln -s /var/lib/snapd/snap /snap # for classic snap support
sudo reboot now
|
Install Snap Store
1
| sudo snap install snap-store
|
Third-Party Softwares#
Fedy#
With Fedy, you can do almost everything, including running predefined system commands to install apps, GPU drivers, network drivers, themes, multimedia codec, extra fonts, development tools, and tweak and configure your system.
1
| sudo dnf copr enable kwizart/fedy
|
Neofetch#
- Neofetch is a command-line system information tool written in bash 3.2+.
- It displays information about your operating system, software and hardware in an aesthetically and visually pleasing way.
1
| sudo dnf install neofetch
|
Upgrading to New Release#
Pre-Installation Steps#
1
2
3
4
| sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=35
sudo dnf system-upgrade reboot
|
Post Installation Steps#
1
2
| sudo dnf system-upgrade clean
sudo dnf clean packages
|
Firmware Update#
1
2
3
4
5
| sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update
sudo reboot now
|
Miscellaneous#
Clean-up old packages#
You can see a list of packages with broken dependencies by typing:
sudo dnf repoquery --unsatisfied
The list should be empty, but if this is not the case consider removing them as they are not likely to work.
You can see duplicate packages (packages with multiple versions installed) with:
sudo dnf repoquery --duplicates
Remove packages no longer in use
sudo dnf autoremove
References#