• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

AI, Linux, Cloud and DevOps

  • Home
  • Resources
    • Learn Linux
    • Articles
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • Facebook Page
  • Contact
  • Privacy Policy
  • About Me
You are here: Home / Articles / How to convert rpm file into deb file

How to convert rpm file into deb file

March 19, 2013 by Sharad Chhetri Leave a Comment

In this tutorial we learn, how to convert rpm file into deb file.In Debian based OS like ubuntu the package file extension is .deb file. For installing the package in debian based OS we use the command dpkg -i package-name.deb .
In Red Hat based linux the package file extension comes in .rpm format .(RPM means Red Hat Package Manager).Sometimes there are some package which are available in rpm file. Hence for installing these package in Debain based OS we have to convert rpm file into deb file.

Follow the given below steps, to convert rpm file into deb file.

Login into Debian based OS (ubuntu/debian/linux mint etc). So here I am using Ubuntu machine for this practical

Step1 : Install alien package in Ubuntu

sudo apt-get install alien

Step 2 : Check if alien is installed or not

dpkg -l|grep alien

Step 3: Download any rpm file.
for eg.

wget ftp://centos.arcticnetwork.ca/pub/centos/6.4/os/x86_64/Packages/vsftpd-2.2.2-11.el6_3.1.x86_64.rpm

Step 4 : run the command , sudo alien package_name.rpm

linux@sharad:~/Desktop$ sudo alien vsftpd-2.2.2-11.el6_3.1.x86_64.rpm
[sudo] password for linux:
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Warning: Skipping conversion of scripts in package vsftpd: postinst prerm
Warning: Use the –scripts parameter to include the scripts.
warning: vsftpd-2.2.2-11.el6_3.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
vsftpd_2.2.2-12_amd64.deb generated
linux@sharad-Lenovo-G570:~/Desktop$ ls
vsftpd-2.2.2-11.el6_3.1.x86_64.rpm vsftpd_2.2.2-12_amd64.deb
linux@sharad:~/Desktop$

Now you can see vsftpd_2.2.2-12_amd64.deb file is created

Step 6: Now you can install the .deb package with command, dpkg -i packag-name.deb

dpkg -i vsftpd_2.2.2-12_amd64.deb

Either creating the deb from rpm file .You can directly install the rpm with alien command also.

Use the command, alien -i package-name.rpm

sudo alien -i vsftpd-2.2.2-11.el6_3.1.x86_64.rpm

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • More
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon

Articles

Extract single and selected files from RPM package on Linux
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
How to install and configure FTP server in Ubuntu 12.04 LTS
man command not found in CentOS and Red Hat
Attach DKIM signature to domain name like sendgrid
How to setup Jenkins Credentials for Git repo access
How to extract RPM package on Linux system
How to configure vsftpd server with virtual user mysql authentication in CentOS 6
Yum command to download rpm file without installing in linux system
semanage command not found in CentOS 6 and RHEL 6
How to install and configure Secure FTP server in Ubuntu 12.04 LTS
linux command to list the files from rpm package without extracting
How to configure FTP server in CentOS 6.3 – vsftpd server
How to find installation date and time of rpm package
How to install and configure FTP server with chroot in Ubuntu 12.04 LTS

Filed Under: Articles, Tips And Tricks Tagged With: rpm to deb

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Articles

  • Install n8n docker in Ubuntu for practicing
  • Bash Script: MySQL Database backup to AWS S3
  • Automate no touch Jenkins setup wizard on docker (jcac)
  • How to run and configure Jenkins in Docker container
  • Complete Guide: How to install Nagios Monitoring on AlmaLinux / Rocky Linux
  • Install KVM on Ubuntu 24.04 LTS ( Bash Script )
  • How to install GIMP 2.10 on Ubuntu / Debian
  • 5 ways to check Ubuntu version of system (commands and GUI)
  • How To Solve Forgot MySQL / MariaDB Root Password
  • Create Self Hosted Build Agent Docker Image for Azure DevOps

Copyright © 2026 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From India.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy