How to install specific version of libhwloc5 - linux

I'm using Ubuntu 16.04 with an already installed libhwloc5 package of version 1.11.2. I want to install it with version 1.11.5 or above. I've tried to remove it and run
sudo apt-get update
then I run
sudo apt-get install libhwloc5
but it installs the same old version, how can I specify the version of installation?

You could specify the version of your package like this:
sudo apt-get install libhwloc5=<version-number-here>
Example: apt-get install virtualbox=5.0.18-dfsg-2build1

Related

psycopg2 package error while installing odoo12 enterprise version on ubuntu18

I am trying to install odoo12 enterprise version on ubuntu18.
I have the deb file, and using gdebi to install the package.
But installation fails with the error
dpkg: dependency problems prevent configuration of odoo:
odoo depends on python3-psycopg2; however:
Package python3-psycopg2 is not installed.
I have tried installing psycopg2.8.5, 2.8.3, 2.7.7 and 2.7.3.1 manually using pip3 install. But with all these , I am getting the same error.
Run this cmd:
Step 1
Run update command to update package repositories and get the latest package information.
sudo apt-get update -y
Step 2
Run the install command with -y flag to quickly install the packages and dependencies.
sudo apt-get install -y python3-psycopg2
Execute - sudo apt-get install python3-dev

How to Install an older version of php using apt-get?

I have this older package in this exact version that I want to install on Ubuntu.
https://launchpad.net/ubuntu/+source/php5/5.3.10-1ubuntu3.20
How can I install it using apt-get ? Thank you
For those looking for an earlier version of php 7.
List all php 7 versions:
apt-cache policy php7.*
Specify and install a specific php 7 version, in example 7.4.3:
sudo apt install php7.4-fpm=7.4.3-4ubuntu2.2
^ ^
| |
(left) pkgname / (right) version part
to find out what different versions of a package is available in the enabled repository
apt-cache policy <package-name>
in your case
apt-cache policy php5
select the version that you want to install and then type
sudo apt-get install pkgname=version
in your case
sudo apt-get install php5=5.3.10-1ubuntu3.20
before running any of the above commands, it is better to update the apt-cache first. To do it, run
sudo apt-get update
Try:
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt install phpX.Y # E.g. 7.4
Source: How to Install PHP 7.4 on Ubuntu 20.04 LTS.

Install GCC5 in Linux Mint LMDE 2

I'm new in Linux and I would like to unistall gcc 4.9 which is installed in my distro Linux Mint LMDE 2 and install gcc 5. I tried to used the following command:
sudo apt-get install gcc5
but it didn't worked. Can someone please help me with this? Please provide all steps to follow. Thank you in advance
Try this.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
apt-get autoremove
This should work in Linux Mint if I'm not mistaken, as its still using the same respository.
sudo apt-get respository ppa:ubntu-toolchain-r/test
This will install you the correct respositories you need for the computer. Some packages are not automatically known to the computer so you need to install the respositories so the computer can install it.
sudo apt-get update
This will update your computer and all packages and the respoitory, this wil ensure it will now work
sudo apt-get install gcc-5 g++-5
This will install the gcc-5 version you wanted.
sudo apt-get autoremove
When you install certain stuff, some things are no longer needed. Maybe a required package from a previous version that you no longer need, do this to conserve space.

Cannot use Cabal in Ubuntu

I try to perfom
$ cabal --version
but it says cabal is not installed. You can install it by typing sudo apt-get install cabal-install. But when I do so, it says: cabal-install is already the newest version.
However, I cannot use it. Why?
It seems that your package isn't properly installed. So remove it cleanly using this command:
sudo apt-get purge cabal-install
And once this is over, re-install it again using the familiar command:
sudo apt-get install cabal-install

update old node.js to new version doesn't work

My linux system used to install a old version node.js environment 0.8.14, now updated it to latest node.js through this
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
when update is done and i rebooted the linux system, then I found it is still the old version node.js.
I'm willing to bet you installed the previous version through apt-get without first adding Chris Lea's PPA. The standard Ubuntu repositories have an old version of node.
You'll need to uninstall this old version before you can get the new one:
sudo apt-get --purge remove nodejs # Remove the package itself
sudo apt-get autoremove # Remove any unneeded dependencies
sudo apt-get update
sudo apt-get install nodejs

Resources