I removed yum on f24. How do I easily reinstall it? - fedora

I removed yum on Fedora 24. How do I easily reinstall it?
I have tried reinstalling using rpm. First I cannot find the rpm previously used (dnf-yum-1.1.10-1.fc24.noarch) and the rpms I get a lot of dependencies and sub dependencies.
I removed yum because it was not working after I re-partitioned my OS using gparted

Fedora 24 does not need yum. You should use dnf.
In case you really need a yum, then install it with dnf:
sudo dnf install yum

Related

Remove CUDA 10.0 and install CUDA 9.2 on Ubuntu 18.04

I'm trying to install TensorFlow-gpu, so I need the CUDA toolkit 9.2.
Unfortunately I installed CUDA 10 and then realized that.
How can I easily remove CUDA 10.0 and install CUDA 9.2, without touching the drivers (since I have Ubuntu 18 I would like to maintain the latest video drivers)?
I already tried to simple install CUDA 9.2 from .deb (network) file, it says
dpkg: error processing archive cuda-repo-ubuntu1710_9.2.148-1_amd64.deb (--install):
trying to overwrite '/etc/apt/sources.list.d/cuda.list', which is also in package cuda-repo-ubuntu1804 10.0.130-1
I already tried to simple install CUDA 9.2 from .run file as described here, it says
Not enough space on parition mounted at /tmp.
Need 2895511552 bytes.
Disk space check has failed. Installation cannot continue.
+1 to installing a stand-alone CUDA-9.2 in a separate dir using .run installer. That should work.
You can specify an alternative location for the temporary files using --tmpdir=... option when you run the .run installer.
I solved this issue as follow :
sudo apt-get purge nvidia*
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /usr/local/cuda-10.0
This will remove cuda-10.0 and then you can install cuda-9.2 as you want
I have solved the problem using #Cs20 answer and doing:
sudo dpkg -P <package name>
in this case <package name> is cuda-repo-ubuntu1804

Why can't I uninstall mysql-5.5 & install mysql-5.6 on Amazon Linux machine?

I'm on a 64-bit Amazon Linux machine.
I had previously installed mysql-server 5.5. (using sudo yum install)
However, I soon found out that my application requires MySql-serve 5.6.
So I uninstalled mysql-server 5.5. (using sudo yum remove mysql-server) and now I'm following these instruction to install mysql-server 5.6.
But I'm running into a problem.
when I try to do the second install, I get the following 2 errors:
file /usr/lib64/mysql/libmysqlclient.so.18 from install of mysql-community-libs-5.6.14-3.el6.x86_64 conflicts with file from package mysql55-libs-5.5.46-1.10.amzn1.x86_64
file /etc/my.cnf from install of mysql-community-server-5.6.14-3.el6.x86_64 conflicts with file from package mysql-config-5.5.46-1.10.amzn1.x86_64
Why on earth am I getting these two errors? How do I fix them?
I removed mysql-server-5.5, so why is it conflicting with 5.6?
I did ls on /etc/my.cnf and /usr/lib64/mysql/libmysqlclient.so.18 and the files don't even exist!! If the files don't exist how can they be conflicting with other files?? Who can help explain this?
PS, I tried #msknapp's explanation here: Can't install MySQL 5.6 by RPM, however I don't know what to do after step #1 to install the rpm. I think that step is left unstated.
mysql-server (of whatever version) depends on other packages ( in your case mysql-community-libs mysql-community-server)
When it is installed in the first place with the old version this stuff is installed. When you "uninstall" mysql-server these dependencies are NOT removed.
When you try and install the new version these still existing packages will conflict with the new package. It does not matter if the actual files in the package are there, it is the package and it's listing of what to expect that conflicts.
To resolve your problem figure out what the dependencies of mysql-server were and uninstall them before attemping the install.
This answer https://superuser.com/questions/294662/how-to-get-list-of-dependencies-of-non-installed-rpm-package may be of interest for working out what mysql-server depends on

Installing mysql gem on rubinius

I have tried installing MYSQL gem on fedora using rubinius but it keeps throwing failed to build gem's native extension and that I should install development tools first.
I am on Fedora 22 and I already have mysql-devel library installed. What should I do?
You probably don’t have gcc et al installed yet. The “development tools” being referred to is likely the yum/dnf group. You can install a slew of build tools by following these instructions. But now that we’re on Fedora 22, use dnf instead of yum.
So, in short:
sudo dnf groupinstall 'Development Tools' 'Development Libraries'

mysql 5.5 on centos 6.4

I have a requirement for MySQL 5.5, and the box is a CentOS 6.4 64-bit VM.
MySQL 5.1.69 is installed, and won't let me install any of the RPMs from the 5.5 RPMs..
MySQL-client-5.5.32-1.el6.x86_64.rpm
MySQL-devel-5.5.32-1.el6.x86_64.rpm
MySQL-embedded-5.5.32-1.el6.x86_64.rpm
MySQL-server-5.5.32-1.el6.x86_64.rpm
MySQL-shared-5.5.32-1.el6.x86_64.rpm
MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm
MySQL-test-5.5.32-1.el6.x86_64.rpm
So I run yum -y remove mysql and then try to install the newer version. I first of all run
rpm -ivh MySQL-shared-5.5.32-1.el6.x86_64.rpm
rpm -ivh MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm
So far so good. I then try to install the server.
rpm -ivh MySQL-server-5.5.32-1.el6.x86_64.rpm
And I get this..
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64
... and so on. If I google some of those errors, I get this page from StackOverflow..
Installing mysql-libs on server with MySQL-Server5.5
.. but if I look at the advice, it says to install the MySQL-shared-compat-5.5.32-2.el6.x86_64.rpm. But it's already installed. :(
Any advice would be welcome. Thank you.
One way is to install all the RPMs at the same time with yum install MySQL*.rpm, which ideally should take care of all package dependencies and upgrades.
You can also get around this problem by using the --replacefiles option to RPM:
rpm -ivh --replacefiles MySQL-server-5.5.32-1.el6.x86_64.rpm
That uses the error message language files from the server package to overwrite those in the 5.1 version that comes with CentOS.
Had this issue with webtatic repository.
Using remi, epel and rpmforge repository saved me the trouble.
Here is the link I referred :
Cent OS 6.4, Php 5.4, Mysql 5.5 - HowTo

php-mysql for MySQL-server (case sensitive)

I don't know how but it seems there are two different versions of mysql probably from different yum repositories :
yum list | grep mysql
MySQL-server.x86_64 5.5.9-1.linux2.6 installed
mysql-server.x86_64 5.1.47-1.2.amzn1 amzn
I need to install php-mysql which is available only for the version that is not installed (5.1.47-1.2.amzn1), if I run yum install php-mysql there is a conflict with the other MySQL-server (5.5.9-1.linux2.6)..
yum install php-mysql
.
.
.
Transaction Check Error:
file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.1.47-1.2.amzn1.x86_64 conflicts with file from package MySQL-server-5.5.9-1.linux2.6.x86_64
As the current MySQL-server with uppercase letters is currently installed and used in production I can't uninstall it and install the other version wehre the php-mysql package is compatible.
How can I install php-mysql for the MySQL-server (5.5.9-1.linux2.6) ? why there are two versions of mysql-servers ?
Any help will be appreciated..
I just had a similar problem when trying to install geoip-devel (GeoIP-devel version 1.4.5 in repo extras, geoip-devel version 1.4.6 in repo rpmforge). Mine was solved by excluding the rpmforge:
yum install --disablerepo=rpmforge GeoIP-devel
I guess your problem is with several repos supplying different versions, maybe you can use yum downgrade (possibly with the --disablerepo option)?