Friday, April 26, 2024
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 175016  / 1 Year ago, sun, march 12, 2023, 6:45:41

I tried sudo yum install flex but I just get: No package flex available. I'm trying to install this for a dependency for yara 1.6 in order to install jsunpack. Thank you for the help.


More From » software-installation

 Answers
1

Assuming you are using Ubuntu, you should usually not attempt to install packages with yum. It is provided for very special circumstances only. Usually you should install software with Ubuntu's package manager, APT (using apt-get, or the alternative, aptitude), or with one of its graphical frontends (like the Ubuntu Software Center or the Synaptic Package Manager).




  • yum is primarily used on Red Hat based systems (including Fedora, Red Hat Enterprise Linux, and derivatives of those). The above commands are what you'd use instead. The lower-level tool on Red Hat based systems, for installing a package from a specific package file, is rpm. dpkg (or its graphical frontend, gdebi) should be used to for this purpose on Ubuntu. dpkg installs .deb packages--if you find you actually need to install an .rpm package, you should use alien to make a .deb package from it and install that.


  • See Installing Software for more information.




In this particular situation, you may be able to install flex by clicking here:




  • Install via the software center



Or you can install it by running these commands:



sudo apt-get update
sudo apt-get install flex


The first command updates information about what packages are available in what versions and from what software sources. It's advisable to run that before installing or upgrading packages from the command line. Whereas yum will always fetch this information before attempting an installation (which is handy, but which also makes it take a lot longer than necessary if you run a number of yum commands in a short time), sudo apt-get install ... does not fetch this information.



If you don't run sudo apt-get update first, and you haven't run it in a while, you may be getting an old version of the package, attempting to fetch a version so old it's no longer available, or getting a version that doesn't work right with the other packages you have installed.


[#36812] Monday, March 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ormlai

Total Points: 292
Total Questions: 106
Total Answers: 115

Location: Cape Verde
Member since Fri, Sep 16, 2022
2 Years ago
ormlai questions
Wed, Sep 28, 22, 00:17, 2 Years ago
Sun, Aug 7, 22, 22:05, 2 Years ago
Wed, Jun 16, 21, 03:50, 3 Years ago
Sun, Feb 6, 22, 09:11, 2 Years ago
Mon, Jul 12, 21, 10:00, 3 Years ago
;