Stop http service, yum still work CentOS7


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Stop http service, yum still work CentOS7
# 1  
Old 05-10-2019
Stop http service, yum still work CentOS7

Can anyone explain me why yum still working when I stop http service on my localmachine.

If I'm not wrong, yum repository use port 80 and 443, so stop http service should technicly stop possibility to install packages ?
# 2  
Old 05-10-2019
Seems you do not understand how a basic network client-server process works?

Isn't that right?
# 3  
Old 05-10-2019
it is possible that I have a gap in knowledge.
I would be grateful if you could explain it briefly.
# 4  
Old 05-10-2019
In general, all traffic on the Internet has a beginning and an end point Often, this is referred to as the client and the server.

The server listens on well known ports. The client generally uses whatever is available.

When you run HTTPD on your machine, it is generally acting as a client, listening on port 80, or port 443 if using SSL.

When you use YUM to access their repo services, their server is generally listening or port 80, or port 442 if using SSL.

So, when you block HTTPD on your computer, you are not blocking that service on another server, like YUM, because to access a repo like YUM or GIT you are acting as a client, accessing a server. When you block or disable HTTPD on your computer, you are simply blocking access to your server, locally.

You should probably do some homework and learn some basics about client-server processes.
This User Gave Thanks to Neo For This Post:
# 5  
Old 05-10-2019
Thank you for helpful tips.
Greetings !

--- Post updated at 02:45 PM ---

Am I correct, if I want to use redhat repository on the client side have to listen on port 80 and 443 ?

Code:
""

    For up2date, yum, rhn_register, and satellite-sync to work correctly, the firewall must allow connections to:
        rhn.redhat.com on port 80 (http)
        rhn.redhat.com on port 443 (https)
        xmlrpc.rhn.redhat.com on port 80 (http)
        xmlrpc.rhn.redhat.com on port 443 (https)
        content-xmlrpc.rhn.redhat.com on port 80 (http)
        content-xmlrpc.rhn.redhat.com on port 443 (https)
        content-web.rhn.redhat.com on port 80 (http)
        content-web.rhn.redhat.com on port 443 (https)
        cdn.redhat.com on port 80 (http)
        cdn.redhat.com on port 443 (https)
""

# 6  
Old 05-10-2019
No.

Clients do not "listen" on port 80 or 443, servers listen on them.

In general, client processes are not "listeners".

I would love to take all my time teaching you client server operations; but it is really better for you to learn about this yourself.

You cannot learn about this in 10 minutes. You need to read some books or watch 3 or 4 YT videos, or both.

I spend my time developing code. However, there may be others here at unix.com who have time to teach you client-server communications.

Sorry, I just do not have the time right now. However, I can answer one question a day if you want to ask me (maybe two at the most); but you could probably learn faster watching some YT videos.
# 7  
Old 05-10-2019
Run
Code:
yum repoinfo

The listed http://server/ need to listen on port 80 and the listed https://server/ on port 443.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. AIX

To stop ftp service on VIO

Hi all, How can I close ftp port 21 on VIO server. Best regards, ---------- Post updated at 10:06 AM ---------- Previous update was at 08:45 AM ---------- I resoved with switch to OS mode. $ oem_setup_env (0 Replies)
Discussion started by: getrue
0 Replies

3. Red Hat

Would like to stop service authentication

Hello All. I'm trying start services as an Admin user on CentOS 7. I'm able to start the service as the user but it prompts me for a password. How do I get the user to start a service without being prompted? For example; If I attempt to start the sendmail service as my user2, I receive the... (2 Replies)
Discussion started by: bbbngowc
2 Replies

4. Red Hat

Cant update yum what so ever [Errno 14] HTTP Error 404 - Not Found

Hello!!! I am so frustrated I'm about to snap!!! I cant hear any sound in Firefox or re-install Chrome. Every time I try to do anything with YUM inside my terminal (like update or install) I keep getting this error:failure: repodata/repomd.xml from virtualbox: No more mirrors to try. I... (2 Replies)
Discussion started by: ApacheOmega
2 Replies

5. UNIX for Dummies Questions & Answers

Yum error :You could try using --skip-broken to work around the problem , You could try running:

Hi Guys, I got below error while trying to install yum localinstall libstdc++-4.4.7-3.el6.i686.rpm Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to... (1 Reply)
Discussion started by: heman96
1 Replies

6. AIX

Help activating http service on AIX

Am new to AIX 5.1 and we have our production database running on it. I need to activate HTTP service so that i can connect to the database's Enterprise manager from my workstation's web browser. can anyone help me with how to activate HTTP service on AIX 5.1 (9 Replies)
Discussion started by: reachay
9 Replies

7. Linux

Why service (start|stop) can not be called from cron?

Hi, When I googled, I came to know that I can not call the command "service <service-name> start" from cron, insted I have to specify path to the service-name. I wanted to know the reason. Thanks, Hansini (3 Replies)
Discussion started by: hansini
3 Replies

8. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

9. Solaris

Auto Start/Stop Didnt Work in Solaris 10

Hi...all database - 10g Rs 2 with ASM platform - Sun Solaris V890 64bit This is the step i use to auto start the database n ASM: (auto start can start but need to kill lsvcrun first) 1 dbora---script 2 start_shutdown_asm.ksh---script 3. Dbora file must be put under /etc/init.d directory... (0 Replies)
Discussion started by: adzuanamir
0 Replies

10. AIX

How to stop perl service

how to stop perl service on AIX? how to find if per service runing? (4 Replies)
Discussion started by: rainbow_bean
4 Replies
Login or Register to Ask a Question