Arch Linux - apt-get update equivalent command?
The equivalent of apt-get update
in Arch Linux is pacman -Syy
.
pacman -Syu
is equivalent to apt-get update && apt-get upgrade
.
Might as well make this complete if it stays...
pacman -S <package>
is apt-get install <package>
Linux apt-get command not found - How to install a package in Arch Linux?
First of all, Arch provides a beautiful, well maintained wiki. You may want to read it first before working with Arch. The pre-installed package manager is "pacman".
To install a package from the official repositories, you will need to use it like this:
# pacman -S <package name>
There is also a community maintained version, the Arch User Repository, for packages not part of the official repository.
Can you use apt in arch-linux
You could test this AUR package for your own risk.
However keep in mind that AUR packages aren't part of Arch Linux, they are created by users.
Although if you just want a way to quickly learn pacman
, which to be honest is a fascinating package manager, you could check this page to see the correspondence between apt
and pacman
.
apt-get update shows errors
You have two issues conflated, for starters lets work on xerus-media
cd /etc/apt
grep -r xerus *
now edit the file containing xerus
sudo vi /etc/apt/either_sources.list_or_a_file_in_subdir
delete the line which mentions
http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release
add these lines
deb http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
deb-src http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
save that file and confirm you no longer see an error which mentions xerus-media
sudo apt-get update
Now on to the docker issue ... docker package for ubuntu is shipped to xenial ... so lets see what you have ... do this
cd /etc/apt
grep -r docker *
now edit the file which mentions docker as in
sudo vi /etc/apt/sources.list
now edit the line
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
its entry should look like this
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
(yes xenial its OK its not artful you still get newest docker) now lets see what docker package you have installed ... issue this
dpkg -l | grep docker
you should see this
ii docker-ce 17.09.0~ce-0~ubuntu amd64 Docker: the open-source application container engine
now do an update
sudo apt-get update && sudo apt-get dist-upgrade
are you now locked and loaded ? if not we can continue battling
Related Topics
Download Images from Google with Command Line
Percentage Value with Gnu Diff
How to Get the First Column of Comm Output
Fastest Way to Tell If Two Files Have the Same Contents in Unix/Linux
How to Wait for Server Restart Using Ansible
Using Putty to Scp from Windows to Linux
List Supported Ssl/Tls Versions for a Specific Openssl Build
Why Does Ps O/P List the Grep Process After the Pipe
Help with Understanding a Very Basic Main() Disassembly in Gdb
Enable/Disable Tasks in Crontab by Bash/Shell
Google-Chrome Failed to Move to New Namespace
How to Perform Grep Operation on All Files in a Directory
One Core Exclusively for My Process
Error with Gradlew: /Usr/Bin/Env: Bash: No Such File or Directory