This question is related to another post in which I asked about the linux parted command.
The parted command did not have the functionality I wanted, someone proposed a patch to give this functionality. I downloaded the latest source code and compiled in the patch and it now does what I want. I followed instructions from here and here.
Briefly, these are the commands I ran:
cd /usr/local/src
sudo git clone Index of /git/parted.git/
cd parted/
sudo ./bootstrap
sudo ./configure --prefix=/usr/local --disable-static --disable-device-mapper
sudo make
sudo make install
This gave me a parted executable in /usr/local/sbin
Now from a command prompt, anywhere in my system, if I run this command:
[flex@thinkpad ~]$ parted -v
parted (GNU parted) 3.6.6-c5bd-dirty
I also still have the original parted in /usr/sbinā¦
[flex@thinkpad ~]$ /usr/sbin/parted_orig -v
parted (GNU parted) 3.6
My question:
What I really wanted was to keep the original parted (v3.6) for everyday use and only have this patched parted (v3.6.6-c5bd-dirty) to play with. I thought I would achieve that by specifying /usr/local in the ./configure command but my Manjaro system seems to now be using the patched version by default.
How do I tell Manjaro to use the original version? Iād like to learn about these amazing open source tools and C programming. But what is the best way to locally compile different versions of linux tools for testing and learning but without having my system use them by default? I just want these executables in a place separate from where Manjaro will look for them by default.
Cheers,
Flex
But when I specifically ask