ghostscript apt repository - install latest/newer version - linux

If you install gs like apt-get install ghostscript then an older version (9.05) is installed but the latest version is 9.14
How to update the apt repository so I can install the latest version (or newer versions)
With Percona you can add their own repository in /etc/apt/sources.list like:
deb http://repo.percona.com/apt wheezy main
Is it possible to do something similar with ghostscript?
Is using Debian Wheezy

You can try this package for ubuntu.
http://pkgs.org/ubuntu-13.10/ubuntu-main-amd64/ghostscript_9.10~dfsg-0ubuntu2_amd64.deb.html
If you want latest and greatest version you should build it from source.

Related

Apt-get install maven did not install latest version

I need to get Maven 3.25 or later in my Linux Ubuntu VM. After running the command sudo apt-get install maven, the system downloaded Maven 3.0.5. Is there a way to get the latest version of Maven (3.3.9) instead using apt-get?
The version of maven in the ubuntu universe repository does not always match the latest available version of software. In addition, Ubuntu does not upgrade packages for new features after shipping a release, only patches and security updates, unless you upgrade the Ubuntu version you are on.
For example, Ubuntu Xenial (16.04) currently ships Maven 3.3.9, but Ubuntu Trusty (14.04) only ships Maven 3.0.5. You have multiple options:
Install maven manually from the maven website.
Upgrade the version of Ubuntu you are using to 16.04, and the package manager will upgrade maven to the 3.3.9 version of maven.
You can run sudo apt-get update to check for package updates. After that potentially sudo apt-get install maven will install more recent version.
If you are using Debian, you can use sudo apt-get install -t jessie-backports maven and it will install the newest version. (Helpful for other users trying to get help.)

Linux not finding Git package for install

I followed the steps mentioned on Git website to install Git. but I am seeing the message that Git package is not available.
Link: http://git-scm.com/book/en/Getting-Started-Installing-Git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
Setting up Install Process
Package curl-devel-7.15.5-9.el5.i386 already installed and latest version
Package expat-devel-1.95.8-8.3.el5_4.2.i386 already installed and latest version
Package gettext-devel-0.14.6-4.el5.i386 already installed and latest version
Package openssl-devel-0.9.8e-12.el5_4.6.i386 already installed and latest version
Package zlib-devel-1.2.3-3.i386 already installed and latest version
Nothing to do
yum install git
Setting up Install Process
No package git available.
Nothing to do

How to force debian squeeze to use libqt4-dev from debian wheezy without upgrading all packages to debian wheezy?

I have a continuous integration server building some software that depends on a more recent version of libqt4-dev than the apt packages in debian squeeze provide. That version is available in debian wheezy. How can I tell apt to use libqt4-dev selectively from wheezy without upgrading all of the packages in my squeeze system to wheezy?
You can do this with apt's "preferences" functionality (man apt_preferences).
To add wheezy as a source of packages without installing anything from wheezy by default, add entries for wheezy to your sources.list, and add the following to /etc/apt/preferences (or to a file in preferences.d):
Package: *
Pin: release n=wheezy
Pin-Priority: 50
Once that is set up, you can install libqt4-dev with the following command:
apt-get install -t wheezy libqt4-dev
This will also install the dependencies of libqt4-dev, which may be numerous. Not being familiar with qt, I'm not sure whether the pinning solution here is the best way to get the newer version of qt onto a squeeze system. Another possibility is the backports repository, but I don't see qt4 in there. A third possibility is to build your own backported version using apt-get -b source.

Upgrading phpmyadmin (and other packages) on Debian Squeeze

I just setup a new VM with Debian Squeeze (latest stable release, 6.0.4). I am going for a webserver, so I installed the usual... apache, php5, mysql, phpmyadmin, etc.
Everything went well, everything is working.
My question is about upgrading packages. I noticed the phpmyadmin version is 3.3.7... the latest is 3.4.10.1. Doing apt-get update/upgrade does not upgrade the package.
How does one go about upgrading packages on a Debian Squeeze server if apt-get update/upgrade does not work?
Thanks!
You can download the latest version from the official page and follow the instrucctions inside the compress file for the installation.
Alternatively if you want to use the debian repositories, you can add
deb http://ftp.us.debian.org/debian testing main contrib non-free
in the file /etc/apt/source.list
Also add
Package: *
Pin: release n=testing
Pin-Priority: 500
in /etc/apt/preferences
doing this you will have all the packages for the testing version, but they're not going to be installed unless you specify it, so run
apt-get update
apt-get install <package name>=<version>
for example
apt-get install phpmyadmin=3.4.10.1-1
you can check the different versions with
apt-cache showpkg phpmyadmin

How to install specific jdk version on CentOS linux

I want to install a specific version (1.6.0_23) of jdk on centos. As I am new to linux, how can I do the installation?
Thanks
You can download needed rpm package from Oracle site http://www.oracle.com/technetwork/java/javase/downloads/index.html
Then install this package:
rpm -ivvh jdk-6u23-linux-amd64.rpm
try
sudo apt-get install openjdk-7-jre

Resources