To install VLC from a command line, use the package manager for your operating system: on Windows, run winget install --id VideoLAN.VLC -e; on macOS with Homebrew, run brew install --cask vlc; and on Debian or Ubuntu Linux, run sudo apt update && sudo apt install vlc. These commands install the VLC media player; the exact command varies by operating system and by which package manager you have set up.
Quick commands by operating system
Use the command that matches your system and package manager. If a command is not recognized, that usually means the package manager is missing or unavailable in your terminal, not that VLC itself cannot be installed.
- Windows 10 or 11 with Windows Package Manager:
winget install --id VideoLAN.VLC -e - macOS with Homebrew:
brew install --cask vlc - Ubuntu or Debian:
sudo apt update && sudo apt install vlc - Fedora:
sudo dnf install vlc, if VLC is available from your enabled repositories. - Arch Linux:
sudo pacman -S vlc - Flatpak on a system with Flathub configured:
flatpak install flathub org.videolan.VLC
Commands are case-sensitive on most Linux systems, and the package name is not identical everywhere. Read the package manager’s confirmation prompt before accepting an installation, especially if it proposes removing or changing other software.
Install VLC from the Windows command line
On current Windows versions, Windows Package Manager is commonly available through the winget command. Open Windows Terminal, PowerShell, or Command Prompt and enter:
winget install --id VideoLAN.VLC -e
The package identifier specifies VLC from VideoLAN, while -e asks winget for an exact identifier match. Follow any prompts to accept the package source or installer terms. You generally do not need to open an administrator terminal just to try the command; Windows or the installer will request elevated permission if the chosen installation requires it.
If Windows reports that winget is not recognized, check whether App Installer is installed and up to date, then open a new terminal and try again. You can also check the package listing with winget search VLC. Another option is Chocolatey, if you have installed and configured it: choco install vlc. Do not run a Chocolatey command unless that package manager is already part of your setup.
After installation, search the Start menu for VLC. The executable may not be added to your terminal’s PATH, so typing vlc in PowerShell is not guaranteed to work on every Windows installation. If you need to launch it by command, use the installed vlc.exe path or configure PATH deliberately rather than assuming the installer did so.
Install VLC on macOS using Terminal
Homebrew is a popular macOS package manager. If it is already installed, the usual command for the VLC application is:
brew install --cask vlc
VLC is a graphical application, so Homebrew’s --cask option installs the app bundle rather than treating it as an ordinary command-line utility. When the installation finishes, open VLC from Applications, Launchpad, or Spotlight. Homebrew may display a message about security permissions or app setup; follow the instructions shown for your macOS version.
If Terminal says brew: command not found, Homebrew is not available in that shell. Install Homebrew using the instructions on its official website, or download VLC from VideoLAN’s official site instead. On some Macs, especially after installing Homebrew for the first time, you may need to follow Homebrew’s instructions to add it to your shell’s PATH before its commands work.
Installing the app does not necessarily make a plain vlc command available. You can launch the app bundle directly with /Applications/VLC.app/Contents/MacOS/VLC, though the exact location can differ if you chose another installation location. For ordinary playback, opening the app is simpler than configuring a shell command.
Install VLC on Linux
On Debian and Ubuntu, VLC is provided through the system’s APT package manager. Refresh the package index and install VLC with:
sudo apt update
sudo apt install vlc
sudo runs the installation with administrative privileges and will ask for your account password. On Linux Mint and other Debian- or Ubuntu-based distributions, the same command often works, but package availability depends on the software sources configured for that distribution. Updating the package index first helps APT find the latest version offered by those sources.
Other distributions use different package managers. On Arch Linux, the command is sudo pacman -S vlc. On Fedora, try sudo dnf install vlc; whether the package is available can depend on the repositories enabled on your system. If DNF cannot find it, check Fedora’s current documentation and repository guidance rather than copying a repository command from an unrelated or outdated tutorial.
Flatpak is another option when it is installed and Flathub is configured. Install VLC with flatpak install flathub org.videolan.VLC, then start it with flatpak run org.videolan.VLC. A Flatpak app is managed separately from a distribution package, and its access to files or devices may be governed by Flatpak permissions. Choose one packaging method unless you have a specific reason to keep multiple VLC installations.
What the install command actually does
A package manager downloads VLC and the components needed to install it, checks package metadata, and runs the appropriate installation process. On Linux, it can also resolve dependencies and register VLC with the system’s application menus. Windows Package Manager and Homebrew similarly use their configured package sources to locate an installer or app package. This is why the command differs across operating systems even though the application is the same.
The command installs the player; it does not necessarily start playback or configure every media format and device. Depending on the package and operating system, you may see a first-run prompt, a request to approve permissions, or a choice about file associations. Those choices can usually be changed later in the system settings or VLC preferences.
Using a package manager is convenient because it gives you a consistent way to install and update applications. It also means the version you receive depends on the package source and its update schedule. A distribution’s repository may offer a different version from VideoLAN’s direct download, without either fact by itself indicating a problem.
Check the installation and launch VLC
On Linux, open a terminal and run vlc --version to check that the executable is available and to see version information. You can start the graphical player by entering vlc. To open a particular file from a terminal, use a quoted path, for example vlc "$HOME/Videos/sample video.mp4". Quotation marks matter when a path contains spaces.
On Windows, launch VLC from the Start menu, or check the installed-app list and winget’s package information. If vlc --version fails in PowerShell, that does not necessarily mean installation failed: the executable may simply not be on PATH. On macOS, use Applications or Spotlight to confirm the app is present; a Homebrew installation can also be checked with brew list --cask vlc.
VLC also has command-line playback options for tasks such as opening a file or controlling playback behavior. These options are separate from the installation command. For example, vlc --help displays available options when the executable is accessible. On Unix-like systems, cvlc is commonly used to run VLC without its normal graphical interface, but it is not a different installer and may not be available in every package or environment.
Common installation problems
- “Command not found” or “not recognized”: Confirm that the package manager is installed, available in PATH, and opened in a new terminal after setup. On Windows, check
winget; on macOS, checkbrew. - The package cannot be located: Refresh the package index where applicable, verify the package name, and check which repositories are enabled. Fedora and other distributions can require additional repository configuration for some software.
- Permission denied: Linux system-package installs normally need
sudo. Do not add administrator privileges to a command unless you understand why they are required. - VLC installs but will not open a file: Test with a known local media file and check the file path and permissions. Network streams, encrypted content, damaged files, and unusual codecs can have separate causes.
- The terminal cannot find VLC after installation: Try launching from the application menu first. A graphical app can be installed correctly even if its executable is not exposed as a short terminal command.
If an installation fails, copy the full error message and identify your operating system version and package manager before searching for a fix. Avoid responding to an error by pasting a long command from an unfamiliar website: it may add software sources, change system settings, or install a different package than intended.
Updates, sources, and safe installation
For routine updates, use the same package manager that installed VLC. For example, use winget upgrade --id VideoLAN.VLC -e on Windows when winget manages the installation, brew upgrade --cask vlc for a Homebrew cask, or your Linux distribution’s normal system update process. Flatpak installations are updated through Flatpak, not necessarily through the system package manager. Mixing installation sources can make it unclear which copy an update command will manage.
Prefer the official VideoLAN download page or a recognized package manager configured for your operating system. Check the package identity before confirming an install, keep your operating system and software updated, and be cautious of download buttons on third-party sites. VLC is free software; an unexpected payment demand to download the player is a reason to stop and verify the source.
Frequently Asked Questions
What is the VLC install command for Windows?
With Windows Package Manager, use winget install --id VideoLAN.VLC -e. If winget is unavailable, install or update App Installer, or use another package manager already configured on your PC.
What is the VLC install command for Ubuntu?
Run sudo apt update && sudo apt install vlc. Enter your password when prompted and confirm the packages APT proposes to install.
Can I install VLC on macOS from Terminal?
Yes. With Homebrew installed, use brew install --cask vlc. The command installs the graphical VLC app; it does not guarantee that vlc will be available as a short shell command.
Is the VLC install command the same as the command to play a video?
No. An install command such as sudo apt install vlc adds the software. Afterward, vlc can launch it on systems where the executable is accessible, and you can provide a media file path to play a file.
Do I need to pay for VLC?
No. VLC is distributed as free software. Use VideoLAN’s official download page or a trusted package manager, and be wary of sites that ask for payment to install the player.