Установка rpm пакета kali linux

Install Rpm Package on Kali Linux

To install Alien and necessary package, run this command To convert a package from RPM to debian format, use this command: To install the package: Complexities : These package inturn have dependent rpm’s (lot of them ) and all these interdependent rpm’s also have versions ex: secured_soft_1.3.0 works only with packages which are of version 1.3, and secured_soft_2.0.0.rpm work only with dependecies of version 2.0 only.

Install Rpm Package on Kali Linux

But shows command not found error.

i tried using with sudo but didn’t help.

Does kali supports .rpm files? How can i install .rpm on Kali linux?

rpm packages are precompiled and built for Red Hat Based Linux Distribution and can be installed only using yum , Zypper and RPM based package managers.
Since Kali Linux is based on Debian you can not install RPM packages directly using apt or dpkg package managers.

However, you can try a utility called Alien which can convert one package format into other but this doesn’t mean every RPM will work since packages link to another packages for dependencies and this can cause troubles.

To install Alien and necessary package, run this command

$ sudo apt-get install alien dpkg-dev debhelper build-essential 

To convert a package from RPM to debian format, use this command:

$ sudo alien packagename.rpm 
$ sudo dpkg -i packagename.deb 

Linux — How to install a rpm package and its, Assuming you already downloaded the package before from another machine that has internet access and FTP the files to your server, you can use the following command to install a rpm rpm -ivh package_name_x85_64.rpm options: i = This installs a new package. v = Print verbose information h = Print 50 hash …

How to install rpm package in linux

How To Install rpm in Linux

RPM Red Hat Package Manager Install /Remove/Upgrade/Query Software’s. RPM packages are two types1. Distribution specific …

How to install any Software Package (RPM) in LINUX

How is RPM package installed?

This is like a ‘chicken and egg’ question. RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed? Likewise, if RPM is (forcefully) uninstalled, then how can it be installed back?

The installer («anaconda» on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn’t dependent on those files.

Читайте также:  List available packages linux

If you need to reinstall rpm then I’d recommend booting the installer into rescue mode and using the rpm command from that environment with the —root option to point to the OS you want to fix.

You can «always» extract the RPM contents, e.g., using rpm2cpio , and put the executables/scripts where they can be used to install packages. Call that a bootstrap process.

How to Install an RPM File in Linux, First, use the cd command to enter the directory where your RPM file is located. Alternatively, you can head over to the location of the downloaded file using the FIles app. Right-click anywhere in the folder and click on “Open in Terminal.” Copy and paste the following command and hit enter. sudo rpm -i «package_name.rpm»

How to install two different versions of same rpm and make them work parallely

Currently I am trying to install a rpm secured_soft_2.0.0.rpm and i am unable to install it as we already have secured_soft_1.3.0 installed.

Requirement is that we need to have both the versions installed.

These package inturn have dependent rpm’s (lot of them ) and all these interdependent rpm’s also have versions ex: secured_soft_1.3.0 works only with packages which are of version 1.3, and secured_soft_2.0.0.rpm work only with dependecies of version 2.0 only. So all these dependencies also need to be reinstalled and even these dependenies should be parallely installed, without deleting old.

Finally , both these versions contain shared libraries and these shared lib’s do not have version numbers in their name.

#rpm -ivh secured_soft_2.0.0.rpm error: Failed dependencies: init-class >= 1.4.17.1-1 is needed by secured_soft_2.0.0.rpm init-connection-interface >= 2.0.11.0 is needed by secured_soft_2.0.0.rpm init-logger >= 2.0.11.0 is needed by secured_soft_2.0.0.rpm init-security >= 2.0.11.0 is needed by secured_soft_2.0.0.rpm 

As i have specified we already have secured_soft_1.3.0.rpm installed and above dependencies are also available but of different version. So we need the to install above dependencies and also need the old version’s of dependencies for the old rpm’s to work

ex : secured_soft_2.0.0.rpm has libArt.so libSec.so and so on which are copied to /usr/lib

Similarly secured_soft_1.3.0.rpm also has libArt.so libSec.so and so on which are already available in /usr/lib

I tried to rename the so’s but still iam not able to install.

Is it possible to change the location for these so’s and get the things done Is there any way we can do it.

At the moment, iam stuck here and would need advice on this Appreciate any help on this.

Since the programs use the same filenames, and you need to put them on the same machine, you might be able to move the older version to another directory tree and make it work there .

You can do this with many applications which do not have compiled-in pathnames.

  • install the older version (this sounds like where you are starting from)
  • use rpm -ql for each of the packages containing unversioned executables, libraries and associated files.
  • use tar to capture an archive of those files, relative to /usr (but omitting directories not owned by the packages).
  • create a new directory, e.g., /usr/local/myapp and untar the older version there.
  • update configuration files in the new location as needed
Читайте также:  Nvidia drivers linux kde

For applications such as this, I would run in a script that updates PATH (and perhaps sets LD_LIBRARY_PATH ) to force the program to run from the new location. You can verify if this works using tools such as strace and lsof , i.e., by looking for the files that the program opens.

Once you have the older version working properly in the new location, you can uninstall its rpms and install the new version of the application.

Caveat: If the newer package is copied from a newer version of the operating system, however, the task is likely to be beyond your ability, whether or not you choose the alternative approach of recompiling the newer packages to fit on the existing system.

Building new/custom packages is one route to recompiling the newer version. If you have the source-RPMs for each part, that is a starting point:

  • extract the files from the source-RPM, e.g., using a script such as unrpm (see for example HowTo: Extract an RPM Package Files Without Installing It ), and
  • copy those extracted files to their as-expected locations in your build-tree, e.g., $HOME/rpmbuild/SOURCES and $HOME/rpmbuild/SPECS
  • modify the spec-file to use the alternative location
  • build the new/modified package using the modified spec-file.

No, out of the box, you cannot.

I’d highly recommend looking into Docker, where you can throw each one into their own container and let them take care of all their dependency problems.

How to install rpm package in linux, this video learn you install package in linux ..using command promot.

Unable to install rpm package in Red Hat Linux

I am using Red Hat Linux installed on VMWare ESXi.

I am using putty to access the machine.

I want to install xyz.noarch.rpm package on RHEL system. When I try the command

I get an error package already installed .

When I verify the same by using the rpm -q xyz.noarch.rpm .

I get response as package xyz.noarch.rpm is not installed . I also tried with the uninstalling the same by using the command as rpm -ev xyz.noarch.rpm the also I get the same response as package xyz.noarch.rpm is not installed .

Can anybody help me to sort out the issue?

The file is named xyz.noarch.rpm , but in the database it’s just xyz . So try rpm -qi xyz .

i faced a similar issue and found that both installation and removal (erase) was not working for a rpm package that i installed. i tried using

more info at : http://www.redhat.com/archives/rpm-list/2002-March/msg00138.html

Читайте также:  Which linux supports wireless

Linux — How to install two different versions of same rpm, use rpm -ql for each of the packages containing unversioned executables, libraries and associated files. use tar to capture an archive of those files, relative to /usr (but omitting directories not owned by the packages). create a new directory, e.g., /usr/local/myapp and untar the older version there.

Источник

rpm-common on Kali Linux

Please follow the steps below to install rpm-common package:

2. Uninstall / Remove rpm-common package

Please follow the guidelines below to uninstall rpm-common package:

3. Details of rpm-common package

Package: rpm-common
Source: rpm (4.17.0+dfsg1-4)
Version: 4.17.0+dfsg1-4+b1
Installed-Size: 1991
Maintainer: RPM packaging team
Architecture: amd64
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.33), libdbus-1-3 (>= 1.9.14), librpm9 (>= 4.17.0+dfsg1), librpmio9 (>= 4.14.0+dfsg1), libselinux1 (>= 3.1~)
Size: 1527756
SHA256: 0c4091d2af7f06ff48cf44fbca37bcfe99d3e6982ef53b54631454186a027a7f
SHA1: f22b4a7079eacf3ce40e40dd44ba9c92dacbff64
MD5sum: 9d8f378248b1c4fdcdfaed6b618cf912
Description: common files for RPM
The RPM Package Manager (RPM) is a command-line driven package
management system capable of installing, uninstalling, verifying,
querying, and updating computer software packages.
.
This package contains some scripts and default configuration which is
used by RPM libraries.
Description-md5: 281a776fb3c0b33e3fa2befccc935f42
Homepage: https://rpm.org/
Tag: devel::packaging, implemented-in::c, interface::commandline,
role::app-data, role::program, scope::utility
Section: admin
Priority: optional
Filename: pool/main/r/rpm/rpm-common_4.17.0+dfsg1-4+b1_amd64.deb

4. References on Kali Linux

5. The same packages on other Linux Distributions

rpm-common (4.14.1+dfsg1-2) Ubuntu 18.04 LTS (Bionic Beaver)

rpm-common (4.12.0.1+dfsg1-3build3) Ubuntu 16.04 LTS (Xenial Xerus)

rpm-common (4.14.2.1+dfsg1-1.1) Ubuntu 20.10 (Groovy Gorilla)

rpm-common (4.16.1.2+dfsg1-3ubuntu1) Ubuntu 21.10 (Impish Indri)

rpm-common (4.17.0+dfsg1-4build1) Ubuntu 22.04 LTS (Jammy Jellyfish)

rpm-common (4.14.2.1+dfsg1-1) Debian 10 (Buster)

Источник

Installing packages in Linux (.deb/.rpm).

Today I’m going to show you how to install packages and softwares in Kali Linux.

Kali Linux support Debian file package( .deb). But you can also install .rpm or .exe file formate.

INSTALLING .deb (Debian) package :

(Α) Through Terminal : –

1- First download Debian package you want to install.

You can download .deb packages from HERE.

2- Go to the location where you have downloaded your file.

3- Right Click and Open Terminal here.

If there is any error regarding dependencies then copy my source.list file into yours.

(Β) Through Synaptic : –

1- First install “Synaptic”. You can download it from HERE. It will be .deb file and install it through Terminal.

screenshot-from-2017-02-27-23-04-07

2- Open Synaptic.

Screenshot from 2017-02-27 23-06-08.png

3- Search your package, right click and mark for installation.

4- Select Apply.

INSTALLING .rpm file package:

1- If you have .rpm package then you have to convert it into .deb file.

2- First download Alien package to convert and install .rpm file. For this open Terminal and type:

sudo apt-get install alien dpkg-dev debhelper build-essential

If there is any error regarding dependencies then copy my source.list file into yours.

3- Now, open Terminal and type:

sudo alien /full_path/packagename.rpm

It will convert .rpm file to .deb file. Now can install it as normal .deb file.

For more tutorials LIKE, SHARE, and SUBSCRIBE.

Источник

Оцените статью
Adblock
detector