How do I uninstall a package with SCons? - scons

What is the Scons equivalent of make uninstall after having installed a package with scons --prefix=$HOME/.local install?

To uninstall, just add the "clean" option:
scons -c --prefix=$HOME/.local install

Go to the folder with the source files and run
sudo scons uninstall

Related

Cygwin and "failed to run aclocal: No such file or directory"

I'm trying to test our Autotools stuff on Cygwin. When I open a prompt:
$ autoreconf --install --force
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf-2.69: failed to run aclocal: No such file or directory
I re-ran the Cygwin package manager and verified autoconf, automake and libtool were installed. There is no package aclocal to install.
Searching is not returning useful hits in the context of Cygwin.
What is the problem, and how do I fix it?
So it looks like it is not enough to install Autoconf 2.69, Automake 1.15 and Libtool. There are other packages that need to be installed, but Cygwin does not install them.
First, I needed the package called automake: wrapper for multiple versions of Automake. Second, I needed the package called libtool: generic library support script.
The package called autoconf: wrapper for multiple versions of Autoconf was already installed, so it did not need to be installed.
If the Autools package needs them, then it should probably install them when users select packages like Autoconf 2.69 and Automake 1.15.

Yum, How to install package in other directory?

According to our systemadmins, all the package I need for my work will have to be installed in /appl.
Is it possible, using 'yum' as packagemanager, to install packages into another directory as defaulted by the package?
As for rpm, it has --relocate OLDPATH=NEWPATH and --prefix NEWPATH which will allow you to change the install path for rpms marked as relocatable which will not apply to all packages. In general, it is not considered a good idea.

How to uninstall LLVM?

I installed LLVM from source (using CMake and make install) but I am unable to uninstall it because there is no make uninstall avalaible.
This is LLVM version 3.5.2.
I use ArchLinux.
How can I uninstall LLVM in an automated way?
From the CMake FAQ / Can I do "make uninstall" with CMake :
...Unix users could enter this command in the shell:
xargs rm < install_manifest.txt
(after you cd to the LLVM build directory).

Install git or update git without apt-get or yum

I have some linux boxes that do not allow me to use yum to install packages. Instead I need to download the zip or tar and then use a package manager to install the items on my linux boxes.
When you go to the git-scm page, the only way they provide to install git is to use yum, apt-get, etc from the command line.
Why is there not just a zip file?
Where can I find the package to install?
Has anyone else had this same issue?
I had the same issue before. I tried to install git from source and it works.
Intalling these packages first:
curl
autoconf
zlib-devel
openssl-devel
perl
cpio
expat-devel
gettext-devel
Getting the GIT scm source code:
git-latest.tar.gz
Compiling the GIT scm from source
tar xzvf git-latest.tar.gz
cd git-{date} // edit it
autoconf
./configure --with-curl=/usr/local
make
make install

Uninstall cmake from centos to install it with yum

I would like to uninstall cmake from centos 6.5: I installed it manually and I have 3.0 version. I would like to uninstall it to install a previous version with yum. I deleted all cmake files as suggested in
http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
and I installed cmake with yum.
But when I call:
cmake ..
I receive the following error:
-bash: /usr/local/bin/cmake: No such file or directory
That means that previous installation is not clean. How can I clean it?
Please try to clear bash's cache using:
hash -r
Reference: SE
For uninstall it. Try to use
sudo yum remove cmake
or for cmake3
sudo yum remove cmake3
You can unistall cmake2 by the command
sudo yum unistall cmake
or unistall cmake3 by
sudo yum uninstall cmake3
If "uninstall" doesn't work, try using "remove".

Resources