Installing one RPM file downloaded using wget - linux

I am trying to install some rpm packages in my oraacle linux. I am downloading using wget command , Like the following,
wget http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage/VirtualBox-4.0-4.0.22_91544_el6-1.x86_64.rpm
Can I use wget install together to download and install those packages ?

If the file is downloaded then you can use the below command
sudo alien -i rpmpackage.rpm

Related

converting rpm files to debian error (package build failed)

after I install alien and
having zenmap in the download folder
when I run this command alien zenmap-7.91-1.noarch.rpm or any command related to it I get this error
package build failed. here's the log:
dh
dh: error:specify sequence to run
make:***[debian/rules:7:binary]Error 25
how do I fix this error? please help...
First just to make sure you don't have any rpm problems run this command:
apt-get --fix-broken install
Then you may need these:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
And after you have all that installed lets make sure our alien version is 8.90.
Remove alien:
apt-get remove alien
Download alien 8.90 version here.
Install alien:
dpkg -i alien_8.90_all.deb
Now we will locate our zenmap file and run these commands:
sudo alien zenmap-7.91-1.noarch.rpm
sudo dpkg -i **YOUR-ZENMAP-FILE**.deb
If those commands run perfectly you can now run:
sudo zenmap
Et voilĂ ! :)
I had the same issue installing Zenmap in kali linux.
Package build failed. Here's the log:
dh: error: specify a sequence to run make:
*** [debian/rules:7: binary] Error 25
To solve this, I had to downgrade to Alien version 8.90, since I was using 8.95.3
There is some information online, and it's also detailed in the changelogs as well, explaining some changes performed on the latest alien updates and how they read the dh headers. Zenmap.rpm packages seem to be non-compilant with these updates.
I downgraded to a different Alien version to skip these dh verification changes.
To do so, I uninstalled the current alien version with
apt-get remove alien
Then, from https://pkgs.org/download/alien I downloaded Ubuntu Main amd64 Official alien_8.90_all.deb
installed with: dpkg -i alien_8.90_all.deb
Downloaded the latest Zenmap rpm version here
https://nmap.org/dist
and successfully converted rpm to deb running
alien zenmap-X.XX.noarch.rpm
Once the RPM was converted to .deb, you could run
dpkg -i zenmap-X.XX.noarch.deb
App would not open, running from CLI I figured that some python libs failed to load
Could not import the zenmapGUI.App module: 'No module named gtk'. I
checked in these directories:
/usr/bin
/usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl
...
As suggested in this post I download the packages:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
Then installed with dpkg
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
Now Zenmap is working beautifully.
You can install the package directly using -i option:
sudo alien -i zenmap-7.91-1.noarch.rpm
Also you can use fpm to convert an rpm to deb, to install it:
sudo apt install ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
To convert:
fpm -s rpm -t deb zenmap-7.91-1.noarch.rpm
I encountered the same exact issue, I was using
alien -i package.rpm
I believe this error occurred because of an update to the bullseye version from bullseye/main alien all 8.95+nmu1 to bullseye/main alien all 8.95.3. Updating Debian preferences to install alien from buster with version buster/main alien all 8.95 fixed the issue for me! Hope this helps!

How to install package wkhtmltopdf in ubuntu

I've used dpkg to install deb packages, but now you can only get the files without an install file. ie (bin, include, lib, share folders) but no .sh or install file.
How can I install this?
Thanks
Download Source:
https://wkhtmltopdf.org/downloads.html
Just download the tar file, put it at somewhere ,then create a soft link to the bin file,like this:
sudo ln -s xxxx/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
That all

Install git or update git without apt-get or yum

I have some linux boxes that do not allow me to use yum to install packages. Instead I need to download the zip or tar and then use a package manager to install the items on my linux boxes.
When you go to the git-scm page, the only way they provide to install git is to use yum, apt-get, etc from the command line.
Why is there not just a zip file?
Where can I find the package to install?
Has anyone else had this same issue?
I had the same issue before. I tried to install git from source and it works.
Intalling these packages first:
curl
autoconf
zlib-devel
openssl-devel
perl
cpio
expat-devel
gettext-devel
Getting the GIT scm source code:
git-latest.tar.gz
Compiling the GIT scm from source
tar xzvf git-latest.tar.gz
cd git-{date} // edit it
autoconf
./configure --with-curl=/usr/local
make
make install

where is cygwin's wget

Did wget move to a package? I use to use setup.exe and search for wget to install it. I don't see it anymore.
The net package is already installed. Both attempts to run wget and locate wget turn up nothing.
If you have Chocolatey
Just installs cyg-get:
choco install cyg-get
Then:
cyg-get install wget
wget is its own package -> http://cygwin.com/packages/wget/
$ cygcheck -f $( which wget )
wget-1.13.4-1

Boost Installation

I have a question regarding the installation of the boost libraries. Is there a package that I can use the sudo apt-get install to install this package. I searched all of the questions in this forum and using the commands sudo apt-get install libboost1.40-dev I cannot install theh package with this. Also, I can download it from boost.org but I do not know the correct path to install it too. I would prefer to install it using the sudo apt-get install commands if possible. I am using Ubuntu 9.04.
Thanks.
If you want to run with the latest version, you can do the bjam install as mentioned by Ralf, but I suggest you build a 'pseudo' package so you can
uninstall it safely
prevent/notice conflicts with official/existing boost packages.
Here is how to do that:
mkdir -pv /tmp/boostinst
cd /tmp/boostinst/
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.bz2/download'
tar xf download
cd boost_1_66_0/
./bootstrap.sh --help
./bootstrap.sh --show-libraries
./bootstrap.sh
checkinstall ./b2 install
On new boost version there is other way:
sudo apt-get update
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download'
tar xf download
cd boost_1_50_0
./bootstrap.sh
./b2 install
You can use command aptitude search libboost to see list of the availiable boost libraries. The last version of boost is 1.42 - maybe that's why you can't find version 1.40.
If aptitude search command don't give you sufficient results, try sudo aptitude update and then run aptitude search again.
On my version of Ubuntu (10.04) it's libboost1.40-all-dev
On your version you've probably got an older version of boost, you should just be able to tab-complete to see which version you can install.
In any case what I usually do under Ubuntu is
sudo apt-get install bjam
Extract the downloaded boost archive to your hard-drive and then cd into the root and
sudo bjam install
This way you can get the newest version of boost, and not the slightly outdated one that is available for your Ubuntu version.
This is a link which explain step by step on how to install it (give it some time read!)
http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html
but your inline shell command might be the simple and easy way for doing it

Resources