{"id":48,"date":"2025-02-10T09:47:20","date_gmt":"2025-02-10T09:47:20","guid":{"rendered":"https:\/\/fuel.ovh\/?p=48"},"modified":"2025-02-10T09:47:20","modified_gmt":"2025-02-10T09:47:20","slug":"how-to-install-and-run-ollama-on-windows-and-linux","status":"publish","type":"post","link":"https:\/\/fuel.ovh\/index.php\/2025\/02\/10\/how-to-install-and-run-ollama-on-windows-and-linux\/","title":{"rendered":"How to Install and Run Ollama on Windows and Linux"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Windows Installation Guide<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Download the Installer<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit the official Ollama website: <a href=\"https:\/\/ollama.com\">https:\/\/ollama.com<\/a>.<\/li>\n\n\n\n<li>Download the Windows installer (<code>.msi<\/code> file).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Install Ollama<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Locate the downloaded <code>.msi<\/code> file.<\/li>\n\n\n\n<li>Double-click the installer to launch the setup wizard.<\/li>\n\n\n\n<li>Follow the on-screen instructions to complete the installation.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Verify the Installation<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Command Prompt<\/strong> (<code>cmd<\/code>).<\/li>\n\n\n\n<li>Type the following command and press <strong>Enter<\/strong>:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">ollama &#8211;version<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the installation is successful, the version number of Ollama will be displayed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Run a Model<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To test Ollama, pull and run a model, such as <strong>Mistral<\/strong>:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">ollama run mistral<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Ollama will automatically download the model and start a session.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Linux Installation Guide<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Download and Install Ollama<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command in the terminal:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This script will download and install Ollama.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Verify the Installation<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check if Ollama is installed correctly by running:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ollama &#8211;version<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Run a Model<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Pull and run the <strong>Mistral<\/strong> model:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">ollama run mistral<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. If this is the first time running the model, Ollama will download it before execution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Installation Guide Step 1: Download the Installer Step 2: Install Ollama Step 3: Verify the Installation ollama &#8211;version If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":1,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions\/50"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/media\/49"}],"wp:attachment":[{"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fuel.ovh\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}