how to install jackson-jaxrs-json-provider in centos 7 - jackson

Platform : CentOs 7
I did a yum install jackson ...version installed is 1.9.4-7.el7
I followed this to install jackson packages.
I don't see a centOs specific rpm for jackson-jaxrs-json-provider
How do i get a jackson-jaxrs-json-provider rpm??

jackson-jaxrs-json-provider is not a rpm but a Java library (see the project page)
To install, it depends how you configure your project, but for example using maven you would add the dependency as
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
<version>2.5.4</version>
</dependency>
If you just want to use the library, you can download it from central and use it as any other Java library in your project
For rpm, you can have a look at the Fedora project rpm http://fr2.rpmfind.net/linux/rpm2html/search.php?query=jackson2-jaxrs-json-provider (as the rpm is available for Fedora and the project you build is on Fedora, it is working) but it does not seem the rpm is available for centos
You can also check here how to build a rpm from Jar lib, long time I did not do it but should still be valid

Related

No Mono release for Debian 11 stable-bullseye

I am trying to install mono-complete on my Debian 11 VPS. However it seems that there is no release for debian:
E: The repository 'https://download.mono-project.com/repo/debian stable-bullseye Release' does not have a Release file.
There does seem to be a release for Ubuntu, but that has a dependency which has a dependency that has no installation candidate.
What is the correct way to install Mono on Debian 11? I have scoured the internet but everything seems to show the exact same method, which does not work.

How to create RPM package that uses setcap and works on both dnf/yum (fedora/redhat) and zypper (openSuse)

I'm developing an RPM package for a service that requires the command setcap for setting capabilities. The purpose of using setcap is to listen to port numbers below 1024.
RPM packages have a 'Requires' section that is a comma-separated list of other required packages, and in theory I can use that to make sure the target system installs the packages needed.
Now here's the problem:
setcap is available for Fedora in package libcap and for openSUSE in package libcap-progs.
the package libcap is not available on openSUSE, and libcap-progs is not available on Fedora.
Is it possible to create a single RPM package that installs setcap and works on both Fedora and openSUSE?
It's possible to write the following:
Requires: /usr/sbin/setcap
This will resolve on both Fedora and openSUSE to their corresponding library

What provides libicui18n.so.52.1()(64bit) on Fedora (23)?

I'm trying to install libQt5Core from an rpm and I get:
Error: nothing provides libicui18n.so.52.1()(64bit) needed by libQt5Core5-5.5.1-4.1.x86_64
There is newer version:
dnf whatprovides libicui18n*
Last metadata expiration check performed 0:00:14 ago on Fri Jan 29 13:58:14 2016.
libicu-54.1-5.fc23.x86_64 : International Components for Unicode - libraries
Repo : #System
Where do you install the libQt5Core from? The official repositories should not require packages versions that are not available.
Don't use that RPM to install the QT 5 core libraries. I'm guessing that you have a package for openSUSE (because that's what comes up when I Google for "libQt5Core rpm"). In Fedora, the package you want is qt5-qtbase. Install that with:
sudo dnf install qt5-qtbase
It happens that our version in Fedora 23 is also version 5.5.1, so I think that'll be what you really need here.
If you're doing software development, you might want to pull in the KDE Frameworks 5 development group, which is mostly QT stuff and which will get you set up for building programs against that, which might be what you're trying to do:
sudo dnf groupinstall kf5-software-development

How can I build an RPM package in a Debian based system?

I'd like to build packages using a build system (i.e. jenkins, travis, etc) but all I have are Ubuntu 12.04 VMs.
I've found this [1] instructions but mach does not support CentOS 7.0.
[1] http://blog.burghardt.pl/2008/12/how-to-build-rpm-packages-in-centos-chroot-on-debian/
http://mojo.codehaus.org/rpm-maven-plugin/ <- rpm plugin for the maven build system
sudo apt-get install rpm # for Ubuntu
Check out the command that it installs called rpmbuild.
Found it! There is actually a tool called rinse: "Rinse is a simple tool which is designed to carry out the installation of a new RPM-based distribution".
rinse --distribution="centos-7" --directory="/tmp/centos-7"
http://collab-maint.alioth.debian.org/rinse/

Upgrade maven.2.0.8 to maven.2.0.9 on Ubuntu Hardy Heron (8.04)

Ubuntu packages for 8.04 only goes upto version 2.0.8 of Maven. How do I install maven 2.0.9 package using apt-get or other Ubuntu package installer ? Thanks.
Try to download and install a .deb from the "maven2" package. Not sure this will work though.
But actually, my advice would be to install Maven manually (download the distribution, extract it, add $M2_HOME/bin to the $PATH and there you go).