New answers tagged

0

Wind River's Linux is meant for build-once-then-ship kind of images, which don't play very well with package management like yum or apt. It commonly also doesn't work very well with things that want to write to the filesystem after writing the image to your embedded device, like database servers -- so they probably don't have it for you to install (and ...


0

rpmbuild adds Python requiremenst automatically from the version of python used. As such, it was adding python(abi)=2.7 to the requires list of the RPM. However, when using the python27 that scl was using provides python27-python. The issue was resolved by adding the line AutoReqProv: no to the spec file in the RPM. The machine that was having the rpm ...


1

Too bad you accepted that rpm answer. That will lead to warnings from subsequent executions of yum, such as Warning: RPMDB altered outside of yum Instead you should use yum localinstall, per section 13 of the Yum and RPM Tricks page of the CentOS wiki => https://wiki.centos.org/TipsAndTricks/YumAndRPM#head-3c061f4a180e5bc90b7f599c4e0aebdb2d5fc7f6 You can ...


0

The file /etc/my.cnf would be part of the package mysql-libs, or mariadb-libs, depending on the release (not something named "package"). A verify on that package will show if it is missing, e.g., $ rpm -V mysql-libs missing c /etc/my.cnf Incidentally, the verification shows that it is a configuration file. Further reading (the files contained in the ...


1

The creator of an rpm spec file can override the default things to check for the verification of a given file. For example, %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/samba/smb.conf means do not check the file's md5sum (size or mtime). These are still recorded in the database, but variation will be suppressed during a -V operation. You ...


0

Configuration files such as smb.conf are often fiddled with by sysadmins, so it does not make sense for rpm to verify something that will be changed. "stock" will also only be whatever was installed on the first install of smb.conf; the contents of this file may vary if the version of samba first installed has changes to its smb.conf, and if a sysadmin has ...


0

I was experiencing similar issue when installing VLC on CentOS 7. The following works for me. I disabled rpmforge and left epel repository on. I googled a bit and found someone saying epel and rpmforge don't well together.


0

What you installed is Python packaged as Software Collection. This way you can have system python and python27 side by side. If you open one terminal and you run: scl enable python27 bash then it will start new bash where python is used from /opt/rh/python27/root/usr/bin/python But if you open another terminal, then python will be used from /usr/bin/...


0

I think you're getting the point wrong. You want to install in a temp dir to make the RPM. You then install the RPM to get the final destination right. The temp dir (known as BuildRoot: in your spec file) is just a staging area. you install to here, almost like a chroot area. THen you package your RPM with rpmbuild -bb, to make your RPM, then install as ...


0

You could put a Requires: for your redhat-release package, with a specific version, say, 6.4. I'd check all the metadata for the redhat-release RPM, and see what's appropriate


0

The best way is to use PackageKit. It will work on both Ubuntu and Fedora. Here is example how to use that: https://www.freedesktop.org/software/PackageKit/pk-faq.html#session-methods


4

If I would like to grep through this meta data less showing me, how can I accomplish this? very simply; if you want to grep on "Version" for example: less your.rpm | grep "Version" Note that less is using the rpm command; so better skip using less; and use rpm commands; like: rpm -qip /path/to/uninstalled/rpm rpm -qi installed.rpm


24

If you browse through the less man page, you'll notice less has an INPUT PREPROCESSOR feature. echo $LESSOPEN to view the location of this preprocessor, and use less/vim/cat to view its contents. On my machine this preprocessor is /usr/bin/lesspipe.sh and it includes the following for rpms: *.rpm) rpm -qpivl --changelog -- "$1"; handle_exit_status $? ...


0

With the rpm %pre script (see http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html) you can check the system before the rpm installation (for exemple the /etc/redhat-release file). But I do not think you can do more than make the installation fail. A possible way to just skip installation on unwanted system is to build the rpm in a way that the installed ...


2

Yes and no: Yes, you can do that with Mock. You just run mock -r epel-7-x86_64 yourpackage.src.rpm and it will build package for RHEL/CentOS 7 no matter what is your current host. No, you cannot do that with rpmbuild as that builds packages for your current platform.


0

if you want to just update your servers automatically, which is remarkably safe under CentOS 4/5/6/7 unless you've done really bad things. Just do this: yum install -y yum-cron sysconfig yum-cron on service yum-cron start You're done. If you want to just check what's available, and not install anything, do yum upgrade and hit N when you have the ...


1

Congrats: you have encountered Dependeny Hell [tm]. Good news: It's always self-inflicted; no exceptions. Virtualmin - I worked with Jamie on a project before outta SCONJ; this isn't like him - is providing an httpd-devel that violates the naming convention set forth by the fedora guidelines that in turn regulates enterprise linux packaging around CentOS ...


0

If you have glibc 2.12 installed, you do NOT have CentOS7; you're on CentOS6. While there's been a lot of grief about the locking of major/minor versions after distro release - it's for stability, testing and certification; you'll learn the value later - the version you're looking at should not exist under an up-to-date centos7. Update your CentOS7, do a ...


0

Be careful if you're thinking a simple conversion will do it: converting a deb to an RPM and vice versa, due to vast differences in filesystem layout, is like dressing up an American in French clothing and expecting him to fit in. Differences in filesystem layout, kernel, libraries and tunings are like cultural differences; and you can't expect a smooth ...



Top 50 recent answers are included