How do I update version of Fish Terminal? (Ubuntu) - apt-get

I am currently on 2.1.0 and would like to go to latest (2.5.0 currently). Is there a command to do this? Or do I need to uninstall the current version and install a new one? Is this done through apt-get?
Could not find this anywhere in documentation or elsewhere on the internet...
I tried downloading the latest .deb file from the fish download page, but trying to open this in Ubuntu software centre yields "Breaks existing package 'fish'"

The best way is to use the package archive provided by the fish project to replace the packages that the Ubuntu project ship (which are very old and contain security problems).
The following commands subscribe your system to the Personal Package Archive run by the fish developers, update the package list and finally upgrade or install fish:
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish
As an added bonus, running apt-get upgrade after these steps will always make sure you have the newest-available version of fish.

Add the PPA for release-3, update, and install
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish

Related

Add alias to installed rpm

First a small situation sketch. We have CentOS 7 and we want to install the opensource version of Oreka (http://oreka.sourceforge.net/). However the software hasn't received updates since 2013.
So we found that in the install script it looks for the rpm package mysql-server. But rpm -q returns package not found since the name is mysql-community-server now. So the question is can we add the alias "mysql-server" somehow to "mysql-community-server" to fool the script. This would be more convenient than rebuilding the install script/package.
You can make your own empty RPM that "Provides" mysql-server and "Requires" mysql-community-server to do this kind of aliasing. You can call it something like mysql-server-compat-myorg.

apt-get update Bad header line

I'm hosting a reprepo debian package server with a bunch of arm packages for an embedded linux project. I have arm symbol files in the repo. On my host machine, Ubuntu 14.04 LTS, I want to -force-architecture install them. When I update my PPAs with my debian repo apt-get update is erroring with Bad header line. I've been searching for hours for a solution. Can't even find a way to turn on verbose for apt-get. dpkg has --debug= so I tried sudo apt-get -o Dpkg::Options::="--debug=3773" update with no success.
Checked /var/log/dpkg.log and /etc/apt/*.logs nothing in them... How do you debug apt-get?

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

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)?

libmysqlclient15-dev on macs?

Does OSX need an install of libmysqlclient15-dev? I'm trying to compile a gem that is failing and a lot of sources says to install "libmysqlclient15-dev" but I only see this for Linux, not OSX. Am I missing something here?
brew install mysql
fixed this for me
I know this is old, but google got me here. So let's say the solution in 2018 for python3 on OSX.
brew install mysql-client
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
pip install mysqlclient
I just had the same problem and only got a partial working solution.
Here are the steps I made to make it work:
brew install mysql-client
brew install mysql-connector-c
IF YOU HAVE ZSH:
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
ELSE:
echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
Now for the installation itself:
LDFLAGS=-L< your openssl lib folder location > pip install mysqlclient==< version >
for example:
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient==1.3.12
If you are using the mysql dmg file to install mysql you will need to edit your ~/.bash_profile and include this:
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
brew install mysql
then
arch -x86_64 gem install mysql2 -v 0.5.3 -- --srcdir=/usr/local/mysql/include
Afterwards I was able to run bundle install.
Copied from Bragadeesh Jegannathan's blog post
Yes you will need to install this. For example if you are trying to install the mysql gem you will need the headers for the mysql library. This is because some gems need to compile native extensions, so they need the header files for any 3rd party libraries that the extensions uses.
On Mac OS X I recommend using MacPorts to manage the installation of these libraries/headers.
Those instructions are for Debian type Linuxes. The closest thing to Debian for OS X is Fink. After getting that installed and set up, you can say fink install mysql-unified-dev to get essentially the same thing as asking for libmysqlclient15-dev on a Debian or Ubuntu type system.
Beware that Fink installs its packages in /sw, and not all build scripts know to look there for libraries and headers. You might have to give custom build options to get it to figure this out.
A path that may be more successful is to simply download the MySQL 5.0 package for Mac OS X. That should include the same development files as libmysqlclient15-dev, and as a bonus will put them in places more likely to be found by your gem.
(Why 5.0, by the way? Because that's what corresponds to ABI version 15, which your package apparently requires. Maybe it will in fact work with 5.1, or 5.4, or 6.0, but that would be a risk you'd have to decide to take on your own.)