[SOLVED] How to trick centos yum into looking like a later release?
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to trick centos yum into looking like a later release?
I'm looking into using yumdownloader to download rpm's
I have a centos 6 system but I want to download the
rpms and deps for a centos 7 system
I cannot replace the C6 with C7 on my browsing machine.
I could back it up or possibly even dual boot into a C7
installation - or maybe install C7 on a thumb drive but all
those are a bit cumbersome.
The simplest answer is probably the "live" thumbdrive install
of C7 but that then ties up a thumbdrive - currently
I think it is the best option though.
I was wondering if there was an easy way to convince
yum (and hence yumdownloader) that my C6 was a C7
in a simple easily swapped back way.
For example is there a centos variable I can just change without
causing hidden issues? Or a .conf change maybe?
I'm looking at it this way because it may be a more general
solution for myself and possibly others.(avoiding future need
to use the thumbdrive as releases change)
Part of the complication I see is finding a simple way of
installing the correct repos for C7 and then quickly swapping
them back to C6 - A bash script would probably do that
but I'm not overly familiar with bash and the consequences of
this to the host C6 OS.
Any constructive comments or suggestions welcome
TIA
F.
I'm looking into using yumdownloader to download rpm's
I have a centos 6 system but I want to download the rpms and deps for a centos 7 system
I cannot replace the C6 with C7 on my browsing machine. I could back it up or possibly even dual boot into a C7 installation - or maybe install C7 on a thumb drive but all those are a bit cumbersome.
The simplest answer is probably the "live" thumbdrive install of C7 but that then ties up a thumbdrive - currently I think it is the best option though. I was wondering if there was an easy way to convince yum (and hence yumdownloader) that my C6 was a C7 in a simple easily swapped back way.
For example is there a centos variable I can just change without causing hidden issues? Or a .conf change maybe? I'm looking at it this way because it may be a more general solution for myself and possibly others.(avoiding future need to use the thumbdrive as releases change)
Part of the complication I see is finding a simple way of installing the correct repos for C7 and then quickly swapping them back to C6 - A bash script would probably do that but I'm not overly familiar with bash and the consequences of this to the host C6 OS.
What you're wanting to do is a very bad idea. Mixing repos for different versions will (as michaelk rightly said), break your system. If you'd like to use CentOS 7, the *BEST* option is to back up your data, and do a fresh install.
While an in-place upgrade is an option, I would never do one unless I had to. I've had bad luck/gremlins when doing such things, as you CAN be left with 'residuals' from the previous version lying about. Strange things can happen, and a clean install is just better, in my opinion. If you just want to downlaod the RPM's, you can use wget to grab them...but as soon as you start installing/using them on C6, be prepared to do that fresh install whether you want to or not.
What you're wanting to do is a very bad idea. Mixing repos for different versions will (as michaelk rightly said), break your system. If you'd like to use CentOS 7, the *BEST* option is to back up your data, and do a fresh install.
I believe the OP just wants to download the RPMS which will then be installed on a (presumably non-internet-connected) CentOS 7 system.
damn - that will teach me to read the man page instead of typing --help !
I now see the man page on centos6 for yumdownloader is dated 2005....
that option didn't exist back then.
Thanks rknichols - if it does what it appears to do that should be the
final key to let me get this done.
Yes - you're right - I think I must have been pronouncing it oddly when I first read it
because it didn't click as useful at all at the time - but I've been messing about a bit
more with yum and am starting to get the message.
Another issue has cropped up though but I'll start a new thread because its probably
worth thinking about in isolation anyway (xz compression)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.