Skip to content

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

License

Notifications You must be signed in to change notification settings

Molnix888/dnf-export-import-pkgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnf-export-import-pkgs

A script created to ease a process of moving to a new system by restoring a set of predefined DNF packages.

Uses package names and ignores versions during operations. Can use any text file with package names list for import operation.

Requires root privileges to run.

Use

$ sudo ./dnf-export-import-pkgs.sh
Usage: sudo ./dnf-export-import-pkgs.sh [-o <export|import>] [-p <arg...>]

-o  Operation to perform, can either be export or import:
        export - Exports names of installed packages (without version and architecture) to a plain text file.
        import - Imports package names from plain text file and installs the same set of packages removing the ones not in the list.

-p  Relative filepath, file shouldn't exist for export operation and should exist, be readable and not empty for import operation.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages