How do you specify the version of azure-functions-core-tools? - azure-devops

I have an AzureDevOps pipeline which was running fine a few weeks ago. When I tried to run it again, I got an error which apparently is caused by running the latest azure-functions-core-tools. It was suggested to downgrade it but I couldn't find how to do it on Azure CLI.
I tried adding the version to the code below but it didn't work.
sudo apt-get install azure-functions-core-tools=(version I want to use)

Firstly use apt-cache showpkg <package-name> to list available versions.
Then use sudo aptitude install <azure-functions-core-tools>=<version> to install the version.

Related

Installing MySQL Client 5.6 on Ubuntu 18.04

I have a legacy project that I'm trying to modernize, and part of that involves setting up a more efficient system of automated backups using mysqldump.
The app's database is using MySQL 5.6, and is hosted via an RDS instance. To get mysqldump up and running, I believe I need to install a version of mysql-client that corresponds to 5.6.
However, running apt-get install mysql-client installs 8.0 by default. However, I can't find any version-specific versions of mysql-client available. Running sudo apt-get install mysql-client-5.7 returns a notice that there's no installation candidate available.
Is it still possible to install older versions of mysql-client? If not, is there another way to get ahold of the mysqldump functionality?
Edit: As #exussum noted below, 8.0 is backwards compatible with 5.6 and 5.7. I was hitting errors when running mysqldump, which I'd assumed indicated incompatibility, but were actually related to my app specifically.
They are backwards compatible, so you can use mysql-client 8 to dump mysql-server 5.5
to get a specific version docker is great
(sudo apt install docker) to install
docker run mysql:5.6 mysqldump
will run mysqldump though docker, and you can choose your version there easily enough

Mongodb Version mismatch Issue 3.6 to 4.0 upgrade

I have installed the latest version of MongoDB i.e 4.0.10. I am using Ubuntu 18.04.
When i run mongod --version in putty command line i get version 4.0.10
But When i run query in Studio3T db.version(); i get version 3.6.3
I ran dpkg -l | grep mongo and got following output.
Please help me in identifying what i am doing wrong here.
Looks like you have two MongoDBs installed, judging from 3.6.3-0ubuntu1 installed by apt, and 4.0.10 versions there.
The page Install MongoDB Community Edition on Ubuntu stated:
The mongodb package provided by Ubuntu is not maintained by MongoDB Inc. and conflicts with the mongodb-org package. To check if Ubuntu’s mongodb package is installed on the system, run sudo apt list --installed | grep mongodb. You can use sudo apt remove mongodb and sudo apt purge mongodb to remove and purge the mongodb package before attempting this procedure.
The older 3.6.3 appears to be still running in port 27017, thus that was the one connected to by Studio3T.
To ensure a clean installation, it's better to do a clean install by:
Follow the instructions in Uninstall MongoDB Community Edition
Remove 3.6.3 using apt as per the instruction above
Reinstall using the procedure in Install MongoDB Community Edition on Ubuntu.
It's probably not required to uninstall/reinstall everything again, but you don't want to have conflicting leftover files that will create problems down the road.
If you need the data in the old 3.6.3, please do mongodump before uninstalling it. You can subsequently restore it later.

How to install pgAdmin 4 on Fedora 30?

The RPM given on the official website does not have the pgadmin4 package for Fedora 30.
Is there a known workaround?
Edit: Relevant packages are now included in the RPM, so there is no issue anymore.
You can use the link that points to the x64 package:
sudo dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/F-30-x86_64/pgdg-fedora-repo-latest.noarch.rpm
then you will be able to dnf search and install pgadmin4 normally.
Apparently there is a mistake in the docs for that distro.
You'd have to wait until Devrim gets around to rolling RPMs for Fedora 30.
The alternative is to build the software from source.
EDIT: In the meantime, packages for Fedora 30 are available.

Howto install PostgreSQL 9.6.6 using apt-get on Ubuntu

Is it possible to use apt-get to install a very specific version of PostgreSQL. I would like to install PostgreSQL 9.6.6. I followed the instructions on the postgres download page. This will get the current latest version which is 9.6.7.
Thanks in advance.

sudo yum install gitlab-ce "Nothing to Do" when trying to Upgrade to latest version of gitlab

I am trying to update to the latest version of gitlab on my CentOS server. I am currently running Omnibus version 8.3.2, which has a security issue. I am using the instructions from the update page:
sudo yum install gitlab-ce
Whenever I run this command I get a "Nothing to Do" from the Yum command.
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Nothing to do
I have also tried a manual update with a .rpm file and I get conflict errors because it isn't removing the older version. What am I missing in order to upgrade my version? I am new to this so I apologize if I am over complicating things. I really don't want to uninstall and re-install the latest version.
Thanks in advace