Downloading 'Yum groupinstall "development tools"'? - linux

I've looked all over and build essentials are all I see that was replaced by Development tools. When I type the command I receive "no such command".
What is the alternative to this?

apt-get build-dep package-i-want-to-build to get everything you need to build package - often the easiest way to get the dev tools is to pick a sufficiently complicated package like pidgin and run this
or
apt-get install build-essential to just get a compiler

Ubuntu doesn't use yum. You still want to use the apt instructions.

Debian, Ubuntu, Mint, etc. have APT package manager, not YUM. In these OSes you generally need to do following to install basic development tools, like C and C++ compilers, binutils, etc:
sudo apt install build-essential

Related

Installing software package developed for AMD64 when my PC has ARM64 architecture

I'm somewhat of a linux noob, but I'm trying to use a microcomputer with aarch64 Architecture. I am trying to download software using wget and a Public Cert Key for software developed for x64/AMD64. When I try to run
sudo apt-get install <package>
I get:
E: Unable to locate package <package>
I am assuming it is because it was developed for AMD64. From everything I've found, I think I need a cross compiler to translate the binary from AMD to ARM,but nothing I've found has helped me get any closer to actually installing my desired package. Can anyone give me an ELI5 version or point me in the direction of how to educate myself better on system architectures?
You may have better luck using update command:
sudo apt-get update
to upgrade packages lists
sudo apt-get search <generic name of package>
and then
sudo apt-get install <package name found in search>
The generic name I mean "apache" instead of "apache-php-modlib"

Linux: How to install certain old version of a software via apt-get

I am trying to install the same versions of Apache, MySQL and PHP in my Linux PC (Raspberry Debian) as installed in my remote public server.
For instance, I'd like to install the last legacy release of the 2.2 branch, Apache/2.2.31.
apt-cache showpkg apache2
Output:
Package: apache2
Versions:
2.4.10-10+deb8u4 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages)
But there isn't any information about the 2.2.31 version, neither in "Reverse Provides" section. I can do it by compiling from the sources, but it takes a lot of time. And I tried to find a reliable PPA or a reliable sources for deb packages, without any success.
How can I do it?
If APT tracks the specific version you are looking for, (like Kyle said) then it's pretty easy.
sudo apt-get install <pkg_name>=<pkg_version>
or
sudo apt-get -t=<target_version> <pkg_name>
To see which packages are tracked, run
apt-cache showpkg <package_name>
Unfortunately though, if a particular version is not managed by the APT, then you are out of luck using APT. It might be managed by some of the other package managers out there.
Ref. How can I downgrade a package via apt-get?
If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from a terminal by typing man apt-get.
sudo apt-get install <package-name>=<package-version-number>
or
sudo apt-get -t=<target release> install <package-name>

how to get/download yum development tools for ubuntu?

I need to build yum package in ubuntu for Stress 1.0.2 application in ubuntu . I am i beginner and provide me Links to download and learn building an yum installer package.
Beware that RPM/yum packages rarely work properly on Ubuntu/Debian systems.
If you want to try it anyway, you can use the alien tool to convert the RPM into a DEB, then you can use dpkg or gdebi-gtk to install it. The homepage of alien is http://kitenet.net/~joey/code/alien/ and you can install it with apt-get install alien.
Edit: why do you want to use the RPM package given that you can install stress and stressapptest from the Ubuntu repositories?

How to make Debian package install dependencies?

I want to make a simple Debian package to install a simple tool that depends on Qt4 libs.
In control file I have defined that it depends on Qt4 libs however, by the time I'm testing the package it says that the dependency could not be met.
Question:
How can I make Debian trigger apt to install the dependencies as well?
Can't find that the documentation however I know that apt-get does that.
If you want to avoid creating a local APT repository, you can do:
dpkg -i mypackage.deb
apt-get install --fix-missing
If you do want to create a local repository, you can use reprepro for this.
If you install it via dpkg it won't work because dkpg doesn't know where to find additional dependencies. You could do it via apt-get if you build your own repo, but it's kind of time-consuming the first time (it's not difficult, just something "new" the first time that needs some time to be learnt).
On the other hand, and the solution you are probably looking for is gdebi (you may need to install it: apt-get install gdebi-core). It's a tool that checks the dependencies for a package and calls apt-get to fetch and install them, and then calls dpkg to install your package.
Per #textshell in this answer:
starting with apt 1.1 (available in Xenial (16.04), stretch) apt install also allows local files:
sudo apt install ./foo-1.2.3.deb
So much simpler and cleaner.
See the release
announcment
This will also install dependencies, just like a normal apt install or apt-get install.
If you're creating the Debian package, you specify its dependencies in the debian/ directory control files; I believe debian/control takes Depends: directives for that purpose.
I don't know the details too clearly, myself, but there are instructions at http://www.debian.org/doc/manuals/maint-guide/ ; in particular, http://www.debian.org/doc/manuals/maint-guide/dreq.en.html#control seems to be the right place to start looking.
One way would be to create a local package repository on your computer and add it to /etc/apt/sources.list. Then you could install the package from your local repository with apt-get and have the dependencies resolved automatically.
There's probably an easier way to do it, but I don't know what that would be.

install apt-get on linux Red Hat server

I'm setting up a Linux Red Hat web server. apt-get isn't installed, but yum is. However, yum cannot find the apt package.
When I run apt-get, I get a message from the shell saying that the command apt-get couldn't be found. When I try yum install apt or yum install apt-get I get a message saying yum couldn't find the package and there was nothing to do
I suspect that it's probably a case of editing a sources list (as with apt) to add the source that apt is available from, but I a) don't know where this source list would be, and b) don't know what source would provide apt...
If anyone could enlighten me, it would be greatly appreciated
If you have a Red Hat server use yum. apt-get is only for Debian, Ubuntu and some other related linux.
Why would you want to use apt-get anyway? (It seems like you know what yum is.)
If you insist on using yum, try yum install apt.
As read on this site:
Link
I think you're running into problems because RedHat uses RPM for managing packages. Debian based systems use DEBs, which are managed with tools like apt.
wget http://dag.wieers.com/packages/apt/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
rpm -ivh apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm
maybe some URL is broken,please research it.
Enjoy~~

Resources