What is the difference between pkginfo and pkg info (on Solaris 11)? Why pkginfo does not list packages such as developer/gcc-45, system/header and pkg info does not list packages from OpenCSW? Is there a unified way to show info about all the packages installed in the system?
pkginfo is for SVR4 legacy packages while pkg info is for IPS packages.
Some IPS packages do provide a SVR4 equivalence but you can't have a SVR4 package providing IPS information.
I'm afraid you have to consolidate both output yourself.
Related
I am familiar with creating my own hosted yum repository on a Linux host as well as mirroring public yum repositories. What I am looking for is a solution (paid or free) that will allow me to essentially proxy the Vendor Repo (so packages can remain current) but I would only like to allow specific packages and their dependencies. For example, the repo will allow httpd but also allow users to pull bash, mailcap, shadow-utils, httpd-tools, apr, apr-util, glibc, libdb, expat, lua, pcre, libselinux, systemd-libs, zlib, systems.
Any information would be very useful. I tried limiting via the "/etc/yum.conf" file however it still has the limitation that I know all of the dependencies.
You can exclude specific packages from yum install, example:
# yum install gcc
Dependencies resolved.
===============================================================================================================
Package Architecture Version Repository Size
===============================================================================================================
Installing:
gcc x86_64 8.4.1-1.el8 appstream 23 M
Installing dependencies:
glibc-devel x86_64 2.28-151.el8
if your /etc/yum.conf forbids installation:
[main]
...
exclude=glibc-devel <--- forbid installation
installation fails (proving that glibc-devel was not installed)
$ sudo yum install gcc | grep error
Problem: package gcc-8.4.1-1.el8.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
If I run the command
dnf groupinstall --downloadonly core
then it will
list all the packages which belongs to the package group core,
resolve their dependencies and
download the rpms locally.
What I want is not to download but only list. Is there any easy way to resolve all dependencies related to all packages pertaining to a particular package group?
I have no idea about the strait way to get the list. But you can download them w/o actually store them in your system:
dnf groupinstall --downloadonly --downloaddir=/dev/null core
This command will list all the packages to be downloaded so grab the output strip unnecessary lines and voila.
If this do not work you can try combination of:
yum deplist <package>
and
yum groupinfo core
You can get the list of packages with groupinfo and loop and get the dependencies via deplist
I tried to install this rpm software on my CentOS server:
[root#test software]# rpm -ivh nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm
error: Failed dependencies:
nvidia-340xx-kmod = 340.106 is needed by nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64
Here to say I need this nvidia-340xx-kmod package before installing nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm package.
I try to go to another machine that can connect to the internet to view the rpm package that this nvidia-340xx-kmod package needs, and then I will download it and install:
yum install kmod-nvidia-340xx
But the dependency of the kmod-nvidia-340xx package is the nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm package that I just wanted to install.
Dependencies Resolved
=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
kmod-nvidia-340xx x86_64 340.106-1.el7_4.elrepo elrepo 4.9 M
Installing for dependencies:
nvidia-x11-drv-340xx x86_64 340.106-1.el7.elrepo elrepo 36 M
Transaction Summary
As you see, here is a yum endless loop.
It should be noted that this CentOS server cannot connect to the Internet for some safety reasons.
Then this server can't mount a local source image, because the server room is far from my office room and I don't want to go to that room to use an external storage device to create a local source image, then the server's free space is not enough to save a centos image, free space less than 1G(forgive me this strange problem).
So my question is, I tried to install this package, but the lack of installation process prompts the lack of this package as a dependency.
How can I fix this?
It looks like they depend on each other, so you need them both installed at the same time. sudo yum localinstall *.rpm from the directory they're copied to should work.
I am building a netbeans 8.1 platform application for CentOS6 and CentOS7. These OS's host rpmbuild 4.8.0 and 4.11.3 respectively.
On each OS, I can package the application into a ZIP file distribution in the netbeans 8.1 IDE, which is then referenced in my .spec file.
On both OS, the resulting rpm is built fine (by which I mean, an rpm is produced with no errors).
When I install the rpm on CentOS6, it installs fine and the application runs.
When I install the rpm on CentOS7, rpm returns the following error:
D: Requires: osgi(org.tmatesoft.sqljet) NO
(In fact I get a bunch of osgi references, but all the others have satisfied dependencies).
If I list the rpm dependencies with
rpm -qpR package.rpm
I get the same list of dependencies on both OS, except that on CentOS7 it finds a bunch of osgi() dependencies - these are not present on CentOS6.
Since the only difference between these two proceedures is the version of rpmbuild I am using, I suspect that this is the problem. However, I'm not sure how best to resolve the problem on CentOS7 - I've tried using --nodeps in the rpmbuild command and I've tried adding module dependencies to the project in netbeans, but to no avail. Any help much appreciated.
I'm working on a soloution that needs the gtkMozembed module for python.
I had installed the pygtk2 and genome-python-* packages.
But still i don't have the gtkmozembed module. Can any one tell me how can i install this module.?
I'm also searching for some good repositories for CentOS so that I can update the latest packages. All the repositories now I have, do not maintain the updated packages.
I use CentOs 6.0.
Before continuing, note that gtkmozembed is deprecated, abandoned by the authors and therefore not packaged in CentOS 6 or Ubuntu Oneiric and later:
https://lists.ubuntu.com/archives/ubuntu-devel/2011-May/033229.html
https://groups.google.com/forum/#!topic/mozilla.dev.embedding/c_NMcO-N8wo/discussion
Therefore any use of gtkmozembed is temporary. You may wish to consider the following alternatives which are available as RPM packages on CentOS 6:
pywebkitgtk : Python Bindings for WebKitGTK+
gnome-python2-gtkhtml2 : Python bindings for interacting with gtkhtml2
I managed to download gnome-python2-extras from CentOS 5 and build it on CentOS 6 with the following commands:
rpm -ivh http://vault.centos.org/5.7/os/SRPMS/gnome-python2-extras-2.14.2-7.el5.src.rpm
# edit ~/rpmbuild/SPECS/gnome-python-extras.spec
# comment out the line starting with %patch1
rpmbuild -ba ~/rpmbuild/SPECS/gnome-python-extras.spec