how to backup installed rpm files to reinstall
-
- Posts: 207
- Joined: 2015/11/11 13:52:53
- Location: Hyderbad,Telangana,India
- Contact:
how to backup installed rpm files to reinstall
Hello everyone,
If i want remove centos 7 and install centos 7.2 but i had installed so many applications from rpm files in centos 7 then how get all rpm files which installed in the system so i do not need to search for those installed application for reinstallation.
If i want remove centos 7 and install centos 7.2 but i had installed so many applications from rpm files in centos 7 then how get all rpm files which installed in the system so i do not need to search for those installed application for reinstallation.
Re: how to backup installed rpm files to reinstall
You do not bare metal install 7.2 version, 'yum update' command will update your centos to newest version without problem.
Re: how to backup installed rpm files to reinstall
And if you've run yum update recently then you're already on 7.2. And by recently I mean since November 2015...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: how to backup installed rpm files to reinstall
But i suppose if you really want to acompiish OP's goal, you could do the following:
tar cvfz backup.tgz $(rpm -ql name)
Where name is the RPM that is installed without the version, architecture and .rpm extension.
Hence lets, say you were installing a new version of nginx (e.g. nginx-1.10.1-1.el7.x86_64.rpm); you could do the following:
Also, if you just get a copy of the old RPM that 'used' to be installed, you can always force it's installation with the --force command to roll back:
tar cvfz backup.tgz $(rpm -ql name)
Where name is the RPM that is installed without the version, architecture and .rpm extension.
Hence lets, say you were installing a new version of nginx (e.g. nginx-1.10.1-1.el7.x86_64.rpm); you could do the following:
Code: Select all
# backup nginx contents
tar cvfz nginx.backup.tgz $(rpm -ql nginx)
Code: Select all
# force installation of an older RPM (this command can install
# any rpm this way, so only use it if you have to)
rpm -Uhi --force older.rpm
Re: how to backup installed rpm files to reinstall
Ideally you don't install packages by downloading them anyway. You install yum repositories and then all you need to do is run rpm -qa --qf '%{name}\n' and redirect the output to a file that you then copy elsewhere. Now if you need to reinstall you also reinstall the $repo-release packages and feed your text file back into yum to reinstall them.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 207
- Joined: 2015/11/11 13:52:53
- Location: Hyderbad,Telangana,India
- Contact:
Re: how to backup installed rpm files to reinstall
TrevorH wrote:And if you've run yum update recently then you're already on 7.2. And by recently I mean since November 2015...
I can update os using yum update i know but problem is after updates are installed when it is restarted it go to grub mode with some so I asked this scenario.
Re: how to backup installed rpm files to reinstall
Then you need to start a new thread with the exact symptoms and description of that problem to get it fixed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 207
- Joined: 2015/11/11 13:52:53
- Location: Hyderbad,Telangana,India
- Contact:
Re: how to backup installed rpm files to reinstall
I already posted issue regarding grub error after centos update but i might deleted that post i don't want to take that risk againTrevorH wrote:Then you need to start a new thread with the exact symptoms and description of that problem to get it fixed.
-
- Posts: 207
- Joined: 2015/11/11 13:52:53
- Location: Hyderbad,Telangana,India
- Contact:
Re: how to backup installed rpm files to reinstall
If i had installed any file using yum command or rpm for installing .rpm will it store those .rpm files in any root folder
Re: how to backup installed rpm files to reinstall
No.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke