I've tried to update the postgresql-client package from 10.2 up to 11.5
Because there's no really update option, I removed the package and reinstall via
apt-get install postgresql-client
But Cygwin gets the old 10.2 cached version. How can I remove the cached file to force apt-get to be download and install the most current one?
Related
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
I've been struggling to find any documentation on how to install previous versions of CouchDB onto Ubuntu from a package. Following any documentation such as https://docs.couchdb.org/en/2.1.2/install/unix.html#installing leads to installing of the latest version of CouchDB always (as of today it's version 2.3). So how is it possible, for instance to install 2.1?
Tried:
apt-get install couchdb21
apt-get install couchdb2.1
apt-get install couchdb-21
apt-get install couchdb-2.1
Any ideas?
Found it.
First you do
apt-get policy couchdb
to get a list of versions available and then
apt-get install couchdb=2.1.2~trusty
I want to install the latest vscode on ubuntu 14.04,
what are the dependencies for that?
I don't have sudo so I have to handle all the dependencies manually.
So I thought maybe someone can share all them so I wont have to find out 1 by 1.
You can simply download the zip archive version and extract it to destination folder and then run the startup script usually named code from its bin folder.
I assume that you want to install Visual Studio Code.
So for the latest stable version, just visit the official download page and choose the architecture (64bit or 32bit) you need. By default Ubuntu 14.04LTS uses apt as package manager, so you'll need the .deb file.
Once the download finished, open your download folder (or wherever your downloads are stored). There right click and choose Open in Terminal.
Now you can install VSCode by executing the following command (the file name could differ):
$ sudo dpkg --install code_1.32.2-1552488294_amd64.deb
If there are some unsatisfied dependencies, you will get an error. In this case type in the following:
$ sudo apt -f install
Then apt will automatically install the missing packages and finish the installation of VSCode. It will also add a .list file to your /etc/apt/source.list.d folder, so that VSCode will always be updated from the official repository when you execute sudo apt update and sudo apt upgrade.
Edit:
The dependencies are:
libnotify4
libnss3 (>= 2:3.26)
gnupg
apt
libxkbfile1
libsecret-1-0
libgtk-3-0 (>= 3.10.0)
libxss1
Sorry, very new to server stuff, but very curious. Why run apt-get update when building a container?
My guess would be that it's for security purposes, if that the case than that'll answer the question.
apt-get update ensures all package sources and dependencies are at their latest version, it does not update existing packages that have been installed. It's recommended that you always run apt-get update prior to running an apt-get install this is so when the apt-get install is run, the latest version of the package should be used.
RUN apt-get update -q -y && apt-get install -q -y <your-program>
(the -q -y flags just mean that the apt process will run quietly without asking you for confirmations as this would cause the Docker process to fail)
First, lets make a distinction between apt-get update and apt-get upgrade. The update is to get the latest package index. This is so that you don't run into errors for outdated or redacted packages when doing a apt-get install.
The upgrade is actually going through an upgrading packages. It usually also requires a preceding update to have the updated package index. This might be done if there are package or security concerns of already installed packages.
You usually see an update a lot in builds because the base image may have a fairly out of date package index and just doing an apt-get install can fail.
The upgrade would be less common. But could still be done if you want to ensure the latest packages are installed.
I'm trying to get node.js and npm installed on my Ubuntu 11.10 installation, and I'm having a tricky time. I decided to go the route of downloading and compiling from the latest source because I want to use the new version of node.js - v0.6.0 instead of the older version that the synaptic package manager will install. However, I could not get npm set up correctly with it due to a "module not found" error. I was completely surprised at how little information I was able to find on the error.
Anyways, my goal here is to learn node.js, not to run a production environment. Should I give in and use v4.9 or is it really worth getting the newest version for the sake of learning, even if I have to go through the pain of keeping it updated and configuring it myself?
If you have Ubuntu, install it from Chris Lea's repo, it's always up to date with the last stable version (for ex now the version is 0.6.0 - as of today):
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Generally, you want to install node from source since the packages you find in package managers are usually out of date. 0.4.12 was the last stable before 0.6.0 that was released a few days ago. 0.4.9 is pretty out of date.
This is a old question, nowadays my preferred way to install node is by using nvm (Node Version Manager). This will allow you to have multiple versions of node installed and quickly switch version.
Installation:
Install C++ compiler
apt-get update
apt-get install build-essential libssl-dev
Install NVM
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
source ~/.profile
Install node (select which version you want to install)
nvm install 6
Usage:
To set a default node version:
nvm alias default 0.12.7
To select a different installed version:
nvm use 4