Quantcast
Channel: Installed software from source, how to say yum not to install it from package? - Server Fault
Viewing all articles
Browse latest Browse all 5

Answer by bgStack15 for Installed software from source, how to say yum not to install it from package?

$
0
0

Another option (albeit definitely not the best answer): make a dummy rpm file with the name in question.

You will need rpmbuild installed, and a dummy tarball.

mkdir ~/rpmbuild/{RPMS,SOURCES}touch empty.txttar -zcf ~/rpmbuild/SOURCES/example.tar.gz empty.txt

Write the dummy spec file. This one works for me on Fedora 29. It should be good on CentOS 7 too.

Name:           exampleVersion:        0.0.0Release:        1%{?dist}Summary:        Dummy packageGroup:          DummyLicense:        CC-BY-SA 3.0URL:            http://example.comSource0:    example.tar.gzBuildArch:  noarch#BuildRequires:#Requires:%descriptionDummy for example%prep:%build:%install:%files%doc%changelog

Tweak package name and version number as necessary, and then build the package.

rpmbuild -ba example.spec

The output "binary" rpm file will be ~/rpmbuild/RPMS/noarch/example-0.0.0-1.fc29.x86_64.rpm


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>