manage software
1. yumdownloader - download RPM packages from Yum repositories
yumdownloader sg3_utils
2. rpm -Uvh --replacepkgs tree-1.6.0-10.el7.x86_64.rpm
This option is helpful if files installed from the package were deleted or if you want the original
configuration files to be installed.
3. rpm -Uvh --oldpackage older_package.rpm
If you attempt an upgrade to an older version of a package (that is, if a newer version of the package
is already installed), RPM informs you that a newer version is already installed. To force RPM to
perform the downgrade, use the --oldpackage option
4. rpm -e package
rpm -e --nodeps package
You can encounter dependency errors when uninstalling a package if another installed package
depends on the one you are trying to remove.
Although you can force rpm to uninstall a package that has unresolved dependencies (using
the --nodeps option), this is not recommended. Removing packages with --nodeps can
cause applications from the packages whose dependencies are removed to misbehave or
terminate unexpectedly. It can also cause serious package-management problems or system
failure. For these reasons, heed the warnings about failed dependencies.
Install Python3 on CentOS:
1- To be able to compile Python Source, you will need few packages. Open terminal and execute this command
– For Centos/Fedora
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
– For Ubuntu/ LinuxMint/Debian
sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
2- Download latest release of Python
Fetch and extract source. Please refer to http://www.python.org/download/releases to ensure the latest source is used.
wget http://www.python.org/ftp/python/3.x/Python-3.x.tar.bz2
3- Extract and cd the extracted directory
tar -xjf Python-3.xtar.bz2 cd Python-3.x
4- Configure the build with a prefix (install dir) of /opt/python3 (default is /use/local/), compile, and install.
./configure [--prefix=/opt/python3] make sudo make install
Python 3 will now be installed to /opt/python3.
$ /opt/python3/bin/python3 -V Python 3.x
5- Ensure your python 3 scripts and applications query the correct interpreter.
#!/opt/python3/bin/python3