nothing to do

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
Hello ,

I am trying to install gcc on my red hat server whose version is 5.7, i get the message no package found, nothing to do. dns is configured, i can ping google.com. i also registered it using the subscription-manager commands. still not working.

kindly assist!!
 


arochester

Moderator
Staff member
Gold Supporter
Joined
Apr 25, 2017
Messages
1,654
Reaction score
1,318
Credits
3,230
What command did you use?
 
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
redhat-afb.JPG
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
subscription-manager repos --list to see which repos are available to your system. Then yum repolist to see which repositories are active on your system.

If redhat repositories are active try: yum provides "/usr/bin/gcc*"
 
Last edited:

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
No it searches if it kind find a package in the repositories matching that name in that path.
Here's an example:
Code:
$ yum provides "/usr/bin/gcc*"
Last metadata expiration check: 4 days, 11:30:55 ago on Wed 15 Jul 2020 06:49:40 PM CEST.
gcc-8.3.1-5.el8.0.2.x86_64 : Various compilers (C, C++, Objective-C, ...)
Repo        : AppStream
Matched from:
Filename    : /usr/bin/gcc
Filename    : /usr/bin/gcc-ar
Filename    : /usr/bin/gcc-nm
Filename    : /usr/bin/gcc-ranlib

imake-1.0.7-11.el8.x86_64 : imake source code configuration and build system
Repo        : PowerTools
Matched from:
Filename    : /usr/bin/gccmakedep
 
Last edited:
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
ok, if it does not, what is the next? i am doing this in a production server. i dont have access right now, i am connecting with the client today to test this, so i need all the neccesaary information to get it installed. i actually want to install ossec-agent , and it is dependent on gcc.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
ok, if it does not, what is the next? i am doing this in a production server. i dont have access right now, i am connecting with the client today to test this, so i need all the neccesaary information to get it installed. i actually want to install ossec-agent , and it is dependent on gcc.

What do the following commands show
Code:
yum repolist
subscription-manager repos --list

What is ossec-agent never heard of it?
 
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
its a tool used in cyber security for monitoring activities in windows and linux systems
 
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
the command subscription-manager -list shows status " unsubscribed", after that i subscribed it running the command subscription-manager register , i inserted the username and password that i signed up in linux site, it worked on one of the linux systems, dont know why its not on the production red hat linux machine
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
the command subscription-manager -list shows status " unsubscribed", after that i subscribed it running the command subscription-manager register , i inserted the username and password that i signed up in linux site, it worked on one of the linux systems, dont know why its not on the production red hat linux machine
That's the problem since the system isn't actively subscribed to an active subscription. So you registered the system to the subscription now? Is it subscribed now when you do:
Code:
subscription-manager status
 
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
still not. despite i did, it worked for one.

I am on a project, this is what is pending to close the project. i have tried every trick to install gcc. not working. it tells me registered when i run the command. i gues may be because the red hat is of old version 5.7
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
still not. despite i did, it worked for one.

I am on a project, this is what is pending to close the project. i have tried every trick to install gcc. not working. it tells me registered when i run the command. i gues may be because the red hat is of old version 5.7
Didn't see you mention the version number in your first post(I must have overlooked that). That is the problem, you are running an EOL version of RHEL. You need to switch to a currently supported version of RHEL such as 7 or 8.

Also check the redhat website. Unless you bought Extended Life Cycle Support you are out of luck. I would contact Red Hat support if I were you since you are paying for a subscription.
 
Last edited:
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
Thanks a lot. I suspected that was the issue. What is the name? , i would like to be a friend on linkedin.
Please send me your linkedin profile name
 
OP
B

bennworah

New Member
Joined
Jul 18, 2020
Messages
20
Reaction score
1
Credits
174
so the Extended life cycle support will end Nov 30 2020? so if the client have such support, they can get Red Hat to fix the issue?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
so the Extended life cycle support will end Nov 30 2020? so if the client have such support, they can get Red Hat to fix the issue?
No they probably don't have ELS for RHEL5 because I would think that if they did you would have had no problems registering the system. If your client decides to buy ELS support for RHEL5 they have until end of November 2020 to migrate to supported version of RHEL anyways. So it would be smarter to do that now since you are going to have to do that anyways in about 4 months.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Latest posts

Top