Featured image of post RPM2PKG

RPM2PKG

Converting .rpm -> .pkg.tar.xz

It turned out that Skype and Slack can be installed from AUR with one command

1
yay -S slack-desktop skype

I left the article just for history

I switched to Manjaro and encountered the fact that Skype and Viber are packaged in RPM and DEB. What to do with Arch? On GitLab I placed a simple script that converts rpm to pkg.

Using the Script

  1. Install dependencies
1
2
sudo pacman -S rpm rpm2cpio cpio git
python3 -m pip install --upgrade --user pip pyyaml jinja2
  1. Clone repository
1
2
git clone --depth 1 --single-branch [email protected]:vlasov-y/rpm2pkg.git 
cd rpm2pkg
  1. Convert
1
2
3
4
curl -fLO https://repo.skype.com/latest/skypeforlinux-64.rpm
python3 rpm2pkg skypeforlinux-64.rpm
# or add --install to install package automatically (interactive mode, will prompt you for confirmation)
# python3 rpm2pkg --install skypeforlinux-64.rpm
  1. Install
1
sudo pacman -U skype*.pkg.tar.gz
  1. Remove
1
sudo pacman -R skype
Licensed under Apache License, Version 2.0
Last updated on Oct 17, 2024 12:47 +0300
All rights reserved
Built with Hugo
Theme Stack designed by Jimmy