Bug 1235453 - Backup installed software with rpm -qa no longer useful.
Summary: Backup installed software with rpm -qa no longer useful.
Keywords:
Status: CLOSED DUPLICATE of bug 1177785
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-24 20:50 UTC by Neil
Modified: 2015-07-29 11:53 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-29 11:53:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
rpm -qa > installed-software.bak (68.08 KB, text/plain)
2015-07-07 20:15 UTC, Neil
no flags Details
LANG=C dnf list (3.59 MB, text/plain)
2015-07-07 20:17 UTC, Neil
no flags Details
LANG=C dnf install $(cat installed-software.bak) (1.73 KB, text/plain)
2015-07-07 20:19 UTC, Neil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1177785 0 unspecified CLOSED add hawkey.Selector epoch support 2021-02-22 00:41:40 UTC

Internal Links: 1177785

Description Neil 2015-06-24 20:50:13 UTC
rpm -qa > installed-software.bak 
dnf install $(cat installed-software.bak)

Is not longer useful it worked fine with yum back in fedora 21.


To reply this bug you can:

$rpm -qa > installed-software.bak
$dnf install $(cat installed-software.bak)


Here is my output:
$rpm -qa > installed-software.bak
$dnf install $(cat installed-software.bak)
Last metadata expiration check performed 0:06:21 ago on Wed Jun 24 15:38:58 2015.
El paquete x264-libs-0.142-12.20141221git6a301b6.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete systemtap-runtime-2.7-2.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete chrony-2.0-1.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete libacl-2.2.52-7.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete libselinux-devel-2.3-10.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete docbook-style-dsssl-1.79-20.fc21.noarch ya se encuentra instalado, omitiendo.
El paquete viewnior-1.4-2.fc22.x86_64 ya se encuentra instalado, omitiendo.
El paquete poppler-utils-0.30.0-3.fc22.x86_64 ya se encuentra instalado, omitiendo.
No existe disponible ningún paquete samba-client-libs-4.2.2-0.fc22.x86_64.
Error: no package matched: samba-client-libs-4.2.2-0.fc22.x86_64


samba-client-libs-4.2.2-0.fc22.x86_64 is on the repos already, and if it doesn't happen with samba (editing installed-software.bak to lef samba-client-libs without any version) it happens with a random package, like hplip, or qt.

The problem here is not the lack of skip broken on dnf, since dnf would be skipping software that is on the repos.

Comment 1 Michael Mráka 2015-07-07 12:20:52 UTC
This seems to be a problem with packages having epoch specified.

Comment 2 Honza Silhan 2015-07-07 14:18:49 UTC
Duff, can you post the content of `installed-software.bak` and output of these commands, please?

# LANG=C dnf list
# LANG=C dnf install $(cat installed-software.bak)

Comment 3 Neil 2015-07-07 20:15:12 UTC
Created attachment 1049559 [details]
rpm -qa > installed-software.bak

Comment 4 Neil 2015-07-07 20:17:11 UTC
Created attachment 1049560 [details]
LANG=C dnf list

Comment 5 Neil 2015-07-07 20:19:27 UTC
Created attachment 1049561 [details]
LANG=C dnf install $(cat installed-software.bak)

Comment 6 Neil 2015-07-20 19:46:13 UTC
I could backup my packages to reinstall my system from the bottom with a netinstall, using:

rpm -qa | sort | sed 's/-[0-9].*[0-9]*//g' > filelist.txt

But there's packages like ntfs-3g that are printed like "ntfs". Or packages like "xorg-x11-fonts-ISO8859-1-100dpi" doesn't appears to be available. 

Maybe you guys can test it and see if the output is OK in your system.

Comment 7 Honza Silhan 2015-07-29 11:53:53 UTC

*** This bug has been marked as a duplicate of bug 1177785 ***


Note You need to log in before you can comment on or make changes to this bug.