Convert Source Code Tar.gz , Tar.bz2 or Rpm Files Into Deb Package

2
Convert Source Code tar.gz , tar.bz2 or rpm files into deb Package Most of Linux software sources are available for free of charge , so developer can easily convert the source code into distribution based package format. Distribution based packages are easy installable and configurable . There are two package types used in all Linux distribution 1. deb package [ Debian based Package ] 2. rpm package [ Redhat Package Manager] Debian, Ubuntu, Gentoo, and other Debian based OS are using DEB package, Redhat, Fedora, CentOS are using RPM package. The conversion between rpm based package to deb package is given in this article. The tool ” alien ” is used for doing this job. Step 1: Install alien through Synaptic Package Manager or type the given command in Terminal #sudo apt-get install alien Step 2: Convert tar.gz to deb #sudo alien /opt/eclipse-helios.tar.gz This command will create eclipse-helios.deb package in /opt directory. Step 3: Convert rpm to deb #sudo alien ffmpeg-0.6-3.fc13.i686.rpm The same syntax can be used for other format also ….

description

Linux

Transcript of Convert Source Code Tar.gz , Tar.bz2 or Rpm Files Into Deb Package

Page 1: Convert Source Code Tar.gz , Tar.bz2 or Rpm Files Into Deb Package

Convert Source Code tar.gz , tar.bz2 or rpm files into deb Package Most of Linux software sources are available for free of charge , so developer can easily convert the source code into  distribution based package format. Distribution based packages are easy installable and configurable . There are two package types used in all Linux distribution

1. deb package [ Debian based Package ]2. rpm package [ Redhat Package Manager]

Debian, Ubuntu, Gentoo, and other Debian based OS are using DEB package,  Redhat, Fedora, CentOS are using RPM package. The conversion between rpm based package to deb package is given in this article. The tool ” alien ” is used for doing this job.

Step 1: Install alien through Synaptic Package Manager or type the given command in Terminal

#sudo apt-get install alien

Step 2:  Convert tar.gz to deb

#sudo alien /opt/eclipse-helios.tar.gz

This command  will create eclipse-helios.deb package in /opt directory.

Step 3: Convert rpm to deb

#sudo alien ffmpeg-0.6-3.fc13.i686.rpm

The same syntax can be used for other format also ….

Convertir un fichier ".tar.gz" en ".deb"

1. Lancer le terminal (dans le menu "Applications" puis "Accessoires" puis "Terminal")

2. Taper : "sudo apt-get install alien" (sans les guillemets) et valider

Deuxième étape, toujours depuis le terminal, convertir un fichier ".tar.gz" en ".deb" :

Page 2: Convert Source Code Tar.gz , Tar.bz2 or Rpm Files Into Deb Package

1. Se placer dans le répertoire où se trouve le fichier ".tar.gz" téléchargé (avec la commande "cd")

2. Taper "sudo alien -k nom_du_fichier.tar.gz"

3. Un mot de passe est demandé, taper celui de votre compte Ubuntu.

Alien va générer un ".deb" automatiquement. Une fois l'opération terminée, un deuxième fichier portant cette extension sera présent dans le même répertoire. Double-cliquer sur ce ".deb" lancera alors son installation automatique.

Le souci d'un fichier d'installation généré par Alien c'est qu'il ne créera pas de raccourci dans Gnome, ni sur le bureau ni dans le menu Applications.

Pour localiser le fichier exécutable (et créer par la suite un raccourci) il faut regarder dans quel répertoire il a été installé (onglet "Fichiers inclus" de l'installateur de paquets).

A noter qu'il est également possible d'utiliser Alien pour transformer un fichier ".rpm" (format Red Hat) en ".deb", la syntaxe étant la même qu'avec un ".tar.gz".