Copy a SharePoint 2016 Site Feature and Rename it

I'm trying to duplicate a feature and use the original feature for the live production site - then use the duplicate for a testing site.

How would I go about
   - copying an existing site feature
   - renaming it
   - making it so it is it's own separate feature  (So if the duplicate is changed the original one isn't changed.)

There's only 1 farm.  I've set up a duplicate site to develop with.
The feature is a site feature on the farm that is Active on 1 site.
What I need to do is copy it, rename it and make the copy active on the test site, same farm.    
The new test feature will be modified in the development site.  And while modifying it I don't want it to change the feature on the live site.
Using SharePoint 2016 - On Premise.

Thanks
JS
LVL 2
jshesekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie McAllister MVPSharePoint ConsultantCommented:
Assuming you don't have the source code;

Download a copy of the WSP from the farm;

http://www.ashokraja.me/tips/How-to-download-the-deployed-WSP-solution-from-SharePoint-Farm

Rename the file to .CAB instead of .WSP and extract the contents.

Use a tool such as dot peek to decompile the file; https://www.jetbrains.com/decompiler/

Build the resuling code back into a valid Visual Studio SharePoint Solution project.

Change all references to the feature name and the GUIDs.

Recompile and deploy.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.