What software can I use to extract .rar?

It’s not open source. You need to manually download the prebuilt binaries from the vendor website. I suggest creating tar or zip archives instead if you are making them yourself. If you’re getting files from others, unfortunately there’s no simple solution for this.