file2pacDep(1rrp)
π file2pacDep β the rpmrebuild plugin that turns file deps into package deps π
okay bestie, welcome to file2pacDep(1rrp), a lil rpmrebuild plugin. She's here to do one thing and do it iconically: take your package's dependencies on files and glow them up into dependencies on packages. π¦
β¨ NAME β¨
file2pacDep.plug β a plugin for rpmrebuild, to change file dependencies into package dependencies. π
πΈ SYNOPSIS πΈ
rpmrebuild --include file2pacDep.plug <packagename>
or
rpmrebuild --change-spec-requires="file2pacDep.sh [option]" <packagename>
the first form apply all changes
the second allow to choose which part to change, and plugin options
π DESCRIPTION π
so here's the tea: this plugin replaces all of a package's files dependencies with package dependencies. fr fr, all of them. β¨
Like, a dependency on /bin/bash gets swapped into a dependency on the bash package. Same deal for libraries. no cap. π«Ά
π₯ OPTIONS π₯
-f,--fileβ just apply changes on files with path (ex :/bin/bash) π-l,--libβ just apply changes on libraries file (ex :libc.so) π-h,--helpβ output help information about plugins option and exit. π-v,--versionβ print plugin version and exit π-V,--forceversionβ add a dependency to current version (>=) β¬οΈ
π FILES π
file2pacDep.plugβ is the 'include file' for a quicker use β‘file2pacDep.shβ contains the code π§file2pacDep.plug.1β is this man page π (yes, the one you're reading, main character energy)
π EXAMPLES π
"normal" rpm dependencies are :
$ rpm -qR rpm
gawk
fileutils
textutils
mktemp
shadow-utils
popt = 1.6.4
/bin/sh
/bin/sh
/bin/sh
rpmlib(CompressedFileNames) <= 3.0.4-1
ld-linux.so.2
libbz2.so.1
libc.so.6
libpopt.so.0
libpthread.so.0
librpm-4.0.4.so
librpmbuild-4.0.4.so
librpmdb-4.0.4.so
librpmio-4.0.4.so
librt.so.1
libz.so.1
/bin/sh
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.3)
libpthread.so.0(GLIBC_2.0)
librt.so.1(GLIBC_2.1)
now build a modified package:
rpmrebuild --include file2pacDep.plug rpm
and the result is :
$ rpm -qpR rpm-4.0.4-7x19.i386.rpm
rpmlib(VersionedDependencies) <= 3.0.3-1
popt = 1.6.4
bash
bzip2-libs
fileutils
gawk
glibc
mktemp
popt
rpm
shadow-utils
textutils
zlib
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
look at her go, all those file paths turned into tidy lil package names π
π AUTHORS π
Eric Gerbier <eric.gerbier@tutanota.com>
See <URL:http://rpmrebuild.sourceforge.net/>.
π NOTES π
this plugin is given as an example of what can be done π
π COPYRIGHT π
rpmrebuild is copyright (C) 2004 by Eric Gerbier.
this program is distributed under GNU General Public License
It is provided "as is", without any express or implied warranties. See the file COPYING for details.
heads up bestie: "as is", no warranties, that's the deal β don't come for her if something breaks π
π¦ SEE ALSO π¦
rpm(8), rpmbuild(8), rpmrebuild_plugins(1)
compat_digest.plug(1), demo.plug(1), demofiles.plug(1), nodoc.plug(1), uniq.plug(1), file2pacDep.plug(1), exclude_file.plug(1), un_prelink.plug(1) set_tag.plug(1), unset_tag.plug(1)
man -k rrp for plugins specific manpages π
and that's the whole page, bestie!! β¨ this one came to you from Eric Gerbier, version 2.21, dated file2pacDep(1rrp) β slay, go rebuild something cute π π
π¦ where this page comes from
- epel 9: rpmrebuild 2.21-1.el9 Β· GPL-2.0-or-later
- fedora 43: rpmrebuild 2.21-1.fc43 Β· GPL-2.0-or-later
- fedora 44: rpmrebuild 2.21-2.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms