Skip to content

0n1cOn3/dnf-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐧📦 dnf-manager 📋

LOGO LOGO MIT License

This is a Bash script for managing packages in a Fedora-based Linux distribution. It can 📤 export a list of currently installed packages to a file, and 📥 import a list of packages from a file to install them on the system.

Usage 💻

sudo ./pkg_manage.sh [-o <export|import>] [-p <file_path>]

Options 🛠️

-o: Specifies the operation to perform. Can either be export or import.
-p: Specifies the file path. For export, the file should not exist, and for import, the file should exist and be readable.

Examples 🚀

Export a list of installed packages to a file:

sudo ./pkg_manage.sh -o export -p pkg_list.txt

Import a list of packages from a file:

sudo ./pkg_manage.sh -o import -p pkg_list.txt

Functions 📦

export_pkgs: Exports names of installed packages (without version and architecture) to a plain text file.
import_pkgs: Imports package names from plain text file and installs the same set of packages removing the ones not in the list.
check_pkgs: Compares the package list from import_pkgs against the list of installed packages and shows the differences. Asks the user if they want to install the missing packages.

Contributing 🤝

Feel free to submit pull requests or issues if you find any bugs or have any suggestions for improvement. Copyright Disclaimer 📜

Original source code has been brought by Molnix888.

About

A script for exporting and restoring list of system packages via DNF package management system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%