Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-20-2017, 02:18 AM   #1
LQ Newbie
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
help me

Hi,Actually i need to unistall a pathch in Linux (RHEL 5) .Can anyone help me with this by saying the command i ned to use to uninstall it and where to use it

Last edited by mailtoani1995; 03-20-2017 at 02:22 AM.
Old 03-20-2017, 02:34 AM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi, mailtoani1995, and welcome to LQ.

I hope someone may come along soon with an answer to your query, but given that RHEL is a paid commercial product, I would advise you in the first place to contact RHEL who will give you the support that you need.

Can I also advise you to provide details of which patch you are talking about, and also to give your threads more meaningful names in the future: a title such as "Uninstall patch in RHEL 5" would have been more useful.

Many thanks.
Old 03-20-2017, 06:26 AM   #3
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Rep: Reputation: Disabled
I found this with google.

Reversing patches

Last updated March 15, 2016.

You can reverse a patch if you have finished testing it, or if you want to see whether a problem 
has been introduced by a particular patch. You should also reverse a patch prior to adding a newer,
updated version of the same patch. To reverse the patch, use the patch command with the -R option:

patch -p1 -R < path/file.patch
(If your patch was applied with the -p0 option, use that instead.)


git apply -R path/file.patch


Last edited by bsth123; 03-20-2017 at 06:32 AM.
Old 03-20-2017, 06:45 AM   #4
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi and welcome to LQ.

If you do not have a subscription for support on RHEL5 then you should not be using it, or relying on it as a server. Note also that RHEL5 is going on extended support as of early this year, therefore right now. RHEL7 is the most recent version.

As hydrurga says, you should be contacting Redhat and you should also use better thread title when you post your next thread. While bsth123's reply may be correct, it may also be incorrect because we really have no idea what you've done to this system, how long it has been in service, if you have downloaded a trial version of RHEL and are experimenting, or if this is a production server which should have a support contract, be that current or expired. If something like an expired service contract on a true RHEL production server, then I do not recommend you tinker with it, but instead see about getting paid support and getting the correct, answer for your specific case from Redhat. Otherwise you may be risking the stability of an operational server.

Now, if instead you are experimenting with RHEL and are asking questions about it. Perhaps consider CentOS as a free alternative to RHEL.

It would be helpful if you updated your question as well as changed your thread title, you can do both of those, and advised people more details of your exact problem and why you feel you need to uninstall a patch.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration