How To Install python3-socks on Fedora 36

In this tutorial we learn how to install python3-socks in Fedora 36. python3-socks is Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python

Introduction

In this tutorial we learn how to install python3-socks on Fedora 36.

What is python3-socks

The python-socks package provides a core proxy client functionality for Python. Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async (asyncio, trio, curio) APIs. It is used internally by aiohttp-socks and httpx-socks packages.

We can use yum or dnf to install python3-socks on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-socks.

Install python3-socks on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-socks using dnf by running the following command:

sudo dnf -y install python3-socks

Install python3-socks on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-socks using yum by running the following command:

sudo yum -y install python3-socks

How To Uninstall python3-socks on Fedora 36

To uninstall only the python3-socks package we can use the following command:

sudo dnf remove python3-socks

python3-socks Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/python_socks
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/python_socks-1.2.4-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/python_socks/__init__.py
/usr/lib/python3.10/site-packages/python_socks/__pycache__
/usr/lib/python3.10/site-packages/python_socks/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_basic_auth.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_basic_auth.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_errors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_errors.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_helpers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_helpers.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_http_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks4_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proto_socks5_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_aio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_aio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_curio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_curio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_trio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_async_trio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_chain_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_chain_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_chain_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_chain_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_factory.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_factory.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_proxy_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_aio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_aio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_curio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_curio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_trio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_async_trio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_resolver_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_aio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_aio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_curio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_curio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_trio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_async_trio.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_stream_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_types.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_types.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/__pycache__/_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/_basic_auth.py
/usr/lib/python3.10/site-packages/python_socks/_errors.py
/usr/lib/python3.10/site-packages/python_socks/_helpers.py
/usr/lib/python3.10/site-packages/python_socks/_proto_http.py
/usr/lib/python3.10/site-packages/python_socks/_proto_http_async.py
/usr/lib/python3.10/site-packages/python_socks/_proto_http_sync.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks4.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks4_async.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks4_sync.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks5.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks5_async.py
/usr/lib/python3.10/site-packages/python_socks/_proto_socks5_sync.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_async.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_async_aio.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_async_curio.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_async_trio.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_chain_async.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_chain_sync.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_factory.py
/usr/lib/python3.10/site-packages/python_socks/_proxy_sync.py
/usr/lib/python3.10/site-packages/python_socks/_resolver_async.py
/usr/lib/python3.10/site-packages/python_socks/_resolver_async_aio.py
/usr/lib/python3.10/site-packages/python_socks/_resolver_async_curio.py
/usr/lib/python3.10/site-packages/python_socks/_resolver_async_trio.py
/usr/lib/python3.10/site-packages/python_socks/_resolver_sync.py
/usr/lib/python3.10/site-packages/python_socks/_stream_async.py
/usr/lib/python3.10/site-packages/python_socks/_stream_async_aio.py
/usr/lib/python3.10/site-packages/python_socks/_stream_async_curio.py
/usr/lib/python3.10/site-packages/python_socks/_stream_async_trio.py
/usr/lib/python3.10/site-packages/python_socks/_stream_sync.py
/usr/lib/python3.10/site-packages/python_socks/_types.py
/usr/lib/python3.10/site-packages/python_socks/_version.py
/usr/lib/python3.10/site-packages/python_socks/async_
/usr/lib/python3.10/site-packages/python_socks/async_/__init__.py
/usr/lib/python3.10/site-packages/python_socks/async_/__pycache__
/usr/lib/python3.10/site-packages/python_socks/async_/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/__init__.py
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/__pycache__
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__init__.py
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_chain.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_chain.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_factory.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_factory.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_proxy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_proxy.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_stream.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/__pycache__/_stream.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/_chain.py
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/_factory.py
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/_proxy.py
/usr/lib/python3.10/site-packages/python_socks/async_/asyncio/ext/_stream.py
/usr/lib/python3.10/site-packages/python_socks/async_/curio
/usr/lib/python3.10/site-packages/python_socks/async_/curio/__init__.py
/usr/lib/python3.10/site-packages/python_socks/async_/curio/__pycache__
/usr/lib/python3.10/site-packages/python_socks/async_/curio/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/curio/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/trio
/usr/lib/python3.10/site-packages/python_socks/async_/trio/__init__.py
/usr/lib/python3.10/site-packages/python_socks/async_/trio/__pycache__
/usr/lib/python3.10/site-packages/python_socks/async_/trio/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/async_/trio/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/python_socks/sync
/usr/lib/python3.10/site-packages/python_socks/sync/__init__.py
/usr/lib/python3.10/site-packages/python_socks/sync/__pycache__
/usr/lib/python3.10/site-packages/python_socks/sync/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/python_socks/sync/__pycache__/__init__.cpython-310.pyc
/usr/share/doc/python3-socks
/usr/share/doc/python3-socks/README.md
/usr/share/licenses/python3-socks
/usr/share/licenses/python3-socks/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-socks on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).