{"id":9792,"date":"2026-02-19T18:16:25","date_gmt":"2026-02-19T12:46:25","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=9792"},"modified":"2026-04-10T15:16:29","modified_gmt":"2026-04-10T09:46:29","slug":"how-to-install-buildpacks-using-pack-cli","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-buildpacks-using-pack-cli\/","title":{"rendered":"How to Install Buildpacks Using pack CLI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Buildpacks provide a simple way to create production-ready container images for your applications without writing Dockerfiles. They automatically detect your application\u2019s language, install the required runtime, dependencies, and configure the environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The pack CLI is the official tool for working with Cloud Native Buildpacks. It allows developers to build and run container images locally before deploying to platforms like Heroku or Kubernetes<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing the pack CLI, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu server (20.04 \/ 22.04 \/ 24.04 recommended)<\/li>\n\n\n\n<li>SSH user with sudo privileges<\/li>\n\n\n\n<li>Docker installed and running<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: Download pack CLI<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download the latest pack release and extract it to \/usr\/local\/bin:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ curl -sSL &#8220;https:\/\/github.com\/buildpacks\/pack\/releases\/latest\/download\/pack-linux.tgz&#8221; \\<br>| sudo tar -C \/usr\/local\/bin -xz pack<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: Set Execute Permission<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo chmod +x \/usr\/local\/bin\/pack<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: Verify Installation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Confirm that pack is installed successfully:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ pack &#8211;version<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see the version of the pack installed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4: Verify Available Builders<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check which builders are available to build images:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ pack builder suggest<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will see builders like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>heroku\/builder:24<\/li>\n\n\n\n<li>paketobuildpacks\/builder:base<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These builders provide predefined stacks for building your applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installing the pack CLI is the first step in leveraging Buildpacks to create production-ready container images. Once installed, you can easily build, run, and deploy applications without manually writing Dockerfiles.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With Docker and pack installed, you are now ready to use commands to build clean, reproducible container images for your applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ pack build node-backend &#8211;builder heroku\/builder:24 &#8211;clear-cache<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Buildpacks provide a simple way to create production-ready container images for your applications without writing Dockerfiles. They automatically detect [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"","ast-disable-related-posts":"","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-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":"","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-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":"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":""},"mobile":{"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":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[1010],"class_list":["post-9792","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-buildpacks","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phns3A-2xW","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=9792"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9792\/revisions"}],"predecessor-version":[{"id":9795,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9792\/revisions\/9795"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=9792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=9792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=9792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}