How to Install and Uninstall cpp.x86_64 Package on Amazon Linux 2

Last updated: November 14,2024

1. Install "cpp.x86_64" package

This tutorial shows how to install cpp.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install cpp.x86_64

2. Uninstall "cpp.x86_64" package

Please follow the steps below to uninstall cpp.x86_64 on Amazon Linux 2:

$ sudo yum remove cpp.x86_64 $ sudo yum autoremove

3. Information about the cpp.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : cpp
Arch : x86_64
Version : 7.3.1
Release : 13.amzn2
Size : 9.2 M
Repo : amzn2-core/2/x86_64
Summary : The C Preprocessor
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and
: LGPLv2+ and BSD
Description : Cpp is the GNU C-Compatible Compiler Preprocessor.
: Cpp is a macro processor which is used automatically
: by the C compiler to transform your program before actual
: compilation. It is called a macro processor because it allows
: you to define macros, abbreviations for longer
: constructs.
:
: The C preprocessor provides four separate functionalities: the
: inclusion of header files (files of declarations that can be
: substituted into your program); macro expansion (you can define
: macros, and the C preprocessor will replace the macros with their
: definitions throughout the program); conditional compilation
: (using special preprocessing directives, you can include or
: exclude parts of the program according to various conditions); and
: line control (if you use a program to combine or rearrange source
: files into an intermediate file which is then compiled, you can
: use line control to inform the compiler about where each source
: line originated).
:
: You should install this package if you are a C programmer and you
: use macros.