Solved Delete

  • Thread starter Deleted member 69948
  • Start date
D

Deleted member 69948

Guest
I'm brand new to FreeBSD, so be nice to me, okay? Actually, I'm new to all Unix-like OS's. I've tried a few Linux distros, and now I'm trying FreeBSD, and so far I like it better. Here is the message I get when I try to install the RPM package.
Code:
root@bsd-ghostbsd-pc:/compat/linux # rpm2cpio /home/bsd/Desktop/gimp-2.8.22-1.el7.x86_64.rpm | cpio -id
./usr/share/icons/hicolor/16x16/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/16x16/apps/gimp.png
./usr/share/icons/hicolor/22x22/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/22x22/apps/gimp.png
./usr/share/icons/hicolor/24x24/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/24x24/apps/gimp.png
./usr/share/icons/hicolor/256x256/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/256x256/apps/gimp.png
./usr/share/icons/hicolor/32x32/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/32x32/apps/gimp.png
./usr/share/icons/hicolor/48x48/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/48x48/apps/gimp.png
130600 blocks
I know I can download GIMP from FreeBSD's repo. I just have this RPM package so I'm using it to see if I can get the RPM functionality to work. I tried putting the RPM package in the compat/linux/ dir but it says I don't have permission.
 
I'm brand new to FreeBSD, so be nice to me, okay?

No.

I know I can download GIMP from FreeBSD's repo. I just have this RPM package so I'm using it to see if I can get the RPM functionality to work. I tried putting the RPM package in the compat/linux/ dir but it says I don't have permission.

You are new. Even so, you know there is an easy way. However, you you want to do something really convoluted.
 
No.



You are new. Even so, you know there is an easy way. However, you you want to do something really convoluted.
Why did you even reply to me? Have it make sense.
 
From archivers/rpm2cpio package description: "This version is just a tiny wrapper around bsdtar".

/usr/local/bin/rpm2cpio is a shell script creating with tar(1) a cpio(1) format "newc" (see libarchive-formats(5)) stream on stdout from a RPM archive.

Instead of reformatting with the help of tar(1) a cpio(1) format stream first and install with cpio(1) after, use tar(1) ( bsdtar(1) ) directly. I.e.: tar xf gimp-2.8.22-1.el7.x86_64.rpm -C /compat/linux .
Here is what I get:

root@bsd-ghostbsd-pc:/home/bsd # tar xf /home/bsd/Desktop/gimp-2.8.22-1.el7.x86_64.rpm -C /compat/linux
./usr/share/icons/hicolor/16x16/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/16x16/apps/gimp.png
./usr/share/icons/hicolor/22x22/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/22x22/apps/gimp.png
./usr/share/icons/hicolor/24x24/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/24x24/apps/gimp.png
./usr/share/icons/hicolor/256x256/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/256x256/apps/gimp.png
./usr/share/icons/hicolor/32x32/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/32x32/apps/gimp.png
./usr/share/icons/hicolor/48x48/apps/gimp.png: Cannot extract through symlink usr/share/icons/hicolor/48x48/apps/gimp.png
tar: Error exit delayed from previous errors.
root@bsd-ghostbsd-pc:/home/bsd #
 
Last edited by a moderator:
Try to extract in a local directory first. May be it is something in your /compat/linux/ tree? I had no trouble doing a local extract:
Code:
 $ md5 gimp-2.8.22-1.el7.x86_64.rpm
MD5 (gimp-2.8.22-1.el7.x86_64.rpm) = d5437270ef23d2847d2ce6d82b24718e
$ mkdir tmp
$ tar xf gimp-2.8.22-1.el7.x86_64.rpm -C tmp
$
 
I have FreeBSD setup now instead of GhostBSD, and I have Linux compatibility working. I want to try and add the RPM support, but before I do, is this really all I'm supposed to need to do in order to be able to install RPM packages? Doesn't this just unpack the rpm file? Don't I still have to install the program after that? I can see the gimp files in /compat/linux/bin/, but there seems no way to run the program. Should I use RPM in order to install an RPM package? Like chroot /compat/linux then
rpm -i /home/FreeBSD/Desktop/gimp-2.8.22-1.el7.x86_64.rpm?

When I installed sublime for Linux it created shortcuts on the start menu and I was expecting the same thing when installing an RPM package.

10.2.3. Installing a Linux® RPM Based Application​

To install a Linux® RPM-based application, first install the archivers/rpm4 package or port. Once installed, root can use this command to install a .rpm:
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id


EDIT: So, I guess I found the gimp shortcut in /compat/linux/usr/share/applications/gimp.desktop, but it doesn't seem to launch the program. And this shortcut wasn't added to the start menu.
 
Last edited by a moderator:
Is it possible to setup RPM-support so that I can use the RPM package manager to install packages using a command like this? rpm -i /home/FreeBSD/Desktop/gimp-2.8.22-1.el7.x86_64.rpm? Does anyone know? I think it's possible, but not sure how to get it working. Here is what I get:


root@FreeBSD:/compat/linux # rpm -i /home/FreeBSD/Desktop/gimp-2.8.22-1.el7.x86_64.rpm
warning: /home/FreeBSD/Desktop/gimp-2.8.22-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
/bin/sh is needed by gimp-2:2.8.22-1.el7.x86_64
/usr/bin/python is needed by gimp-2:2.8.22-1.el7.x86_64
babl(x86-64) >= 0.1.10 is needed by gimp-2:2.8.22-1.el7.x86_64
fontconfig >= 2.2.0 is needed by gimp-2:2.8.22-1.el7.x86_64
freetype >= 2.1.7 is needed by gimp-2:2.8.22-1.el7.x86_64
gegl(x86-64) >= 0.2.0 is needed by gimp-2:2.8.22-1.el7.x86_64
gimp-libs(x86-64) = 2:2.8.22-1.el7 is needed by gimp-2:2.8.22-1.el7.x86_64
glib2 >= 2.28.8 is needed by gimp-2:2.8.22-1.el7.x86_64
gtk2 >= 2.24.7 is needed by gimp-2:2.8.22-1.el7.x86_64
hicolor-icon-theme is needed by gimp-2:2.8.22-1.el7.x86_64
libICE.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libSM.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libX11.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXcursor.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXext.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXfixes.so.3()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXmu.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXpm.so.4()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libXt.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libasound.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libasound.so.2(ALSA_0.9)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libatk-1.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libbabl-0.1.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libbz2.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.11)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.14)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.15)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.3.4)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.4)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libc.so.6(GLIBC_2.7)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libcairo.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libdbus-1.so.3()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libdbus-glib-1.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libdl.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libexif.so.12()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libfontconfig.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libfreetype.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgdk-x11-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgdk_pixbuf-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgegl-0.2.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimp-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpbase-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpcolor-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpconfig-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpmath-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpmodule-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpthumb-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpui-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgimpwidgets-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgio-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libglib-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgmodule-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgobject-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgs.so.9()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgthread-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgtk-x11-2.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libgudev-1.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libjasper.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libjpeg.so.62()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libjpeg.so.62(LIBJPEG_6.2)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
liblcms2.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libm.so.6()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libm.so.6(GLIBC_2.2.5)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libmng.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpango-1.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpangocairo-1.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpangoft2-1.0.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpng15.so.15()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpng15.so.15(PNG15_0)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpoppler-glib.so.18()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpthread.so.0()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
librsvg-2.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libtiff.so.5()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libtiff.so.5(LIBTIFF_4.0)(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libwmf-0.2.so.7()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libwmflite-0.2.so.7()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libxml2.so.2()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
libz.so.1()(64bit) is needed by gimp-2:2.8.22-1.el7.x86_64
pango >= 1.29.4 is needed by gimp-2:2.8.22-1.el7.x86_64
pygtk2 >= 2.10.4 is needed by gimp-2:2.8.22-1.el7.x86_64
rtld(GNU_HASH) is needed by gimp-2:2.8.22-1.el7.x86_64
xdg-utils is needed by xdg-utils is needed by gimp-2:2.8.22-1.el7.x86_64
 
Is this true? You have to manually install all of the dependencies? I thought a package manager is supposed to do that for you?

"If the package you are installing or updating depends on other packages that are not currently installed, rpm will display a list of all missing dependencies. You will have to download and install all dependencies manually."

 
Last edited by a moderator:
Yes, rpm command does not install dependencies, you must use yum - or now dnf (like dpkg/apt on Debian). Not sure it's available on FreeBSD...
 
Ignore feature is nice. You can just make someone disappear. Bye.
 
sysutils/dnf is available on FreeBSD.
I installed dnf but I'm getting this error. Any idea what I'm doing wrong?


root@FreeBSD:/compat/linux # dnf install -y rpmdevtools rpmlint
terminate called after throwing an instance of 'Regex::LibraryException'
what(): trailing backslash (\)
Abort (core dumped)
root@FreeBSD:/compat/linux #
 
Back
Top