Fedora 30 - xrdp package seems to be missing

Hello everyone!

I’m trying to install Fedora 30 (KDE flavour) inside of Microsoft’s Hyper-V. I need to install the xrdp package (or better to recompile it). I can find it online in the fedora’s packages, but dnf search xrdp finds only the following packages:

  • xrdp-selinux
  • xrogxrdp
  • xrdp-devel (i686 and x86_64)

I’ve tried running dnf clean all, with no changes.

How can I proceed?

Thank you very much!

Hi @elegos and welcome to Ask Fedora!

I do have xrdp available for installation from Fedora repos:

$ sudo dnf -C list '*xrdp*'
Last metadata expiration check: 0:14:20 ago on Чт 10 окт 2019 12:25:11.
Available Packages
xorgxrdp.x86_64                                                                              0.2.11-1.fc30                                                                             updates
xrdp.i686                                                                                    1:0.9.11-5.fc30                                                                           updates
xrdp.x86_64                                                                                  1:0.9.11-5.fc30                                                                           updates
xrdp-devel.i686                                                                              1:0.9.11-5.fc30                                                                           updates
xrdp-devel.x86_64                                                                            1:0.9.11-5.fc30                                                                           updates
xrdp-selinux.x86_64 

So you should be able to just

sudo dnf install xrdp
1 Like

Yeah, same as @nightromantic:

sudo dnf list \*xrdp\*
Available Packages
xorgxrdp.x86_64                       0.2.11-1.fc30                      updates
xrdp.i686                             1:0.9.11-5.fc30                    updates
xrdp.x86_64                           1:0.9.11-5.fc30                    updates
xrdp-devel.i686                       1:0.9.11-5.fc30                    updates
xrdp-devel.x86_64                     1:0.9.11-5.fc30                    updates
xrdp-selinux.x86_64                   1:0.9.11-5.fc30                    updates

Not sure why it wouldn’t be showing up for you.

BTW, if you want to recompile xrdp, a good way to do that is to download the RPM source package. Then you can build a local RPM and install it that way, still taking advantage of package-management.

$ sudo dnf install rpmdevtools
$ rpmdev-setuptree # Creates $HOME/rpmbuild/ space
$ sudo dnf builddep xrdp # Installs packages necessary to build xrdp
$ cd /tmp/
$ sudo dnf download --source xrdp
$ rpmbuild --rebuild ./xrdp*.src.rpm

The source will be extracted inside $HOME/rpmbuild/BUILD/, it’ll be compiled and installed in a directory under $HOME/rpmbuild/BUILDROOT/ (but all of that gets deleted after the RPM is created), and the results will be in $HOME/rpmbuild/RPMS/{x86_64,noarch}/.

If you want to explore the source or make any modifications, you can use rpm -ivh /tmp/xrdp*.src.rpm (without sudo!) to extract the SRPM contents to $HOME/rpmbuild/SOURCES/ and $HOME/rpmbuild/SPECS/, then create the build dir with:

$ cd ~/rpmbuild/SPECS
$ rpmbuild -bp ./xrdp.spec

The build tree at $HOME/rpmbuild/BUILD/xrdp-0.9.11/ will be “prepped” (extracted and patched), but rpmbuild will stop there and not execute the rest of the steps (build, check, install…)

1 Like

I completely forgot (I always do), you can also do this direct from the SRPM with rpmbuild -rp xrdp*.src.rpm. There’s no need to install it first.

Any rpmbuild -bx file.spec command has a corresponding rpmbuild -rx file.src.rpm form as well. Where x is:

  • prep
  • compile
  • install
  • binary-package
  • source-package
  • all-packages [binary+source]
  • …and don’t ask me what the ‘l’ is supposed to stand for in “verify %files section” (I guess list?)
1 Like