Este contenido no está disponible en el idioma seleccionado.

Chapter 1. Install .NET Core 1.0 on Red Hat Enterprise Linux


This Getting Started Guide describes how to install .NET Core 1.0 on Red Hat Enterprise Linux and perform a simple Hello World! script.

  1. Install Red Hat Enterprise Linux using:

  2. Register the system by following the appropriate steps in Registering and Unregistering a System in the Red Hat Subscription Management document. You can also register the system with the following command.

    # subscription-manager register
    Copy to Clipboard Toggle word wrap
  3. Display a list of all subscriptions that are available for your system and determine the pool ID of a subscription that provides access to the .NET Core repository.

    # subscription-manager list --available
    Copy to Clipboard Toggle word wrap

    This command displays its name, unique identifier, expiration date, and other details related to it. The pool ID is listed on a line beginning with Pool Id.

  4. Attach the subscription that provides access to the .NET Core repository. Replace pool_id with the pool ID you determined in the previous step.

    # subscription-manager attach --pool=<appropriate pool ID from the above step>
    Copy to Clipboard Toggle word wrap
  5. Verify the list of subscriptions your system has currently attached.

    # subscription-manager list --consumed
    Copy to Clipboard Toggle word wrap
  6. Enable the .NET Core channel for Red Hat Enterprise Linux 7. If you are using a Workstation edition of Red Hat Enterprise Linux 7, change -server- to -workstation- in the following command.

    # subscription-manager repos --enable=rhel-7-server-dotnet-rpms
    Copy to Clipboard Toggle word wrap
  7. Install the scl tool.

    # yum install scl-utils
    Copy to Clipboard Toggle word wrap
  8. Install .NET Core 1.0 and all of its dependencies.

    # yum install rh-dotnetcore10
    Copy to Clipboard Toggle word wrap
  9. Enable the rh-dotnetcore10 collection environment.

    $ scl enable rh-dotnetcore10 bash
    Copy to Clipboard Toggle word wrap

    This command does not persist; it creates a new shell and the dotnet command is only available within that shell. If you log out, use another shell, or open up a new terminal, the enabling does not carry over. Consider permanently enabling it.

    $ source scl_source enable rh-dotnetcore10
    Copy to Clipboard Toggle word wrap
  10. Run the following command to prove the installation succeeded.

    $ dotnet --help
    Copy to Clipboard Toggle word wrap
  11. Create the following directory.

    $ mkdir hello-world
    Copy to Clipboard Toggle word wrap
  12. Navigate to the following directory.

    $ cd hello-world
    Copy to Clipboard Toggle word wrap
  13. Create a new .NET Core project.

    $ dotnet new
    Copy to Clipboard Toggle word wrap
  14. Pull the dependencies needed for the .NET Core project.

    $ dotnet restore
    Copy to Clipboard Toggle word wrap
  15. Run the .NET Core project.

    $ dotnet run
    Copy to Clipboard Toggle word wrap

Report a bug

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2026 Red Hat