A
A
Alex2016-05-10 16:00:00
ubuntu
Alex, 2016-05-10 16:00:00

How to use apt-get as alias in ubuntu 16.04?

Ubuntu 16.04 introduced a tool called apt (apt-get replacement).
How can I make it so that when I type any command using apt-get, (for example apt-get update) apt ( ) will actually work apt update?
I tried to create an alias:
echo "alias apt-get='apt'" > ~/.bash_aliases
But on startup it apt-get updateworked apt-getinstead ofapt

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2016-05-10
@sfi0zy

Check Availability

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

in your ~/.bashrc and then do
. ~/.bashrc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question