[LINUX] How to use homebrew on Debian

A memorandum for Docker beginners. I would appreciate it if you could tell me what is wrong and what you should do.

The method of the official document did not enter as it is

It was possible using the alternative installation in the official documentation. Note that after installing aptitude, the latest packages will not be installed unless you also perform aptitude update on aptitude.

apt-get update && apt-get install -y aptitude
aptitude update && aptitude install -y build-essential curl file git
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)
aptitude update
brew update

When warnings in the following languages appear

line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory

Install locales and set the language

aptitude update && aptitude install -y locales
localedef -f UTF-8 -i en_US en_US

#For those who use Japanese,
# localedef -f UTF-8 -i ja_JP ja_JP

I tried to make it a Dockerfile

FROM debian:buster

RUN apt-get update && apt-get install -y aptitude
RUN apt-get update
RUN aptitude update && aptitude install -y build-essential curl file git
RUN aptitude update


#install brew
RUN git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
RUN mkdir ~/.linuxbrew/bin
RUN ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
RUN eval $(~/.linuxbrew/bin/brew shellenv)

#Language support
RUN aptitude update && aptitude install -y locales
RUN localedef -f UTF-8 -i en_US en_US

reference

Homebrew on Linux — Homebrew Documentation

Kill the cannot change locale --ARCHIVESDRIVE HB

Recommended Posts

How to use homebrew on Debian
How to use Dataiku on Windows
Notes on how to use pywinauto
Notes on how to use featuretools
Notes on how to use doctest
How to use mecab, neologd-ipadic on colab
How to use Google Assistant on Windows 10
Memorandum on how to use gremlin python
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use image-match
How to use shogun
How to use Pandas 2
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to use list []
How to use python-kabusapi
How to use OptParse
How to use return
How to use dotenv
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
How to use Python Kivy ④ ~ Execution on Android ~
How to use Qt Designer
How to use search sorted
[gensim] How to use Doc2Vec
python3: How to use bottle (2)
Understand how to use django-filter
How to use the generator
[Python] How to use list 1
How to use FastAPI ③ OpenAPI
How to use Python argparse
How to use Pandas Rolling
[Note] How to use virtualenv
How to use redis-py Dictionaries
Python: How to use pydub
[Python] How to use checkio
[Go] How to use "... (3 periods)"
How to use Django's GeoIp2
[Python] How to use input ()
How to use the decorator
[Introduction] How to use open3d