Bug 1235453

Summary: Backup installed software with rpm -qa no longer useful.
Product: [Fedora] Fedora Reporter: Neil <l4coa3fnjplr>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, l4coa3fnjplr, mluscon, mmraka, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 11:53:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
rpm -qa > installed-software.bak
none
LANG=C dnf list
none
LANG=C dnf install $(cat installed-software.bak) none

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 ***