Khánh Đoan
New member
How do I install a package in Linux?
Answer
To install a new package, complete the following steps:
Follow these steps:
Follow these steps:
with self-update
To add a repository to your system’s software sources:
Answer
To install a new package, complete the following steps:
- Run the dpkg command to ensure that the package is not already installed on the system: ?
- If the package is installed already, ensure it is the version you need.
- Run apt-get update then install the package and upgrade:
Code:
https://commons.wikimedia.org/wiki/File:QR_Launchpad_mkd-packages_src%2B_Linux-bin.png
- Open up a terminal window.
- Issue the command sudo apt-get upgrade.
- Enter your user’s password.
- Look over the list of available updates (see Figure 2) and decide if you want to go through with the entire upgrade.
- To accept all updates click the ‘y’ key (no quotes) and hit Enter.
Follow these steps:
- Open up a terminal window.
- Issue the command sudo apt-get upgrade.
- Enter your user’s password.
- Look over the list of available updates (see Figure 2) and decide if you want to go through with the entire upgrade.
- To accept all updates click the ‘y’ key (no quotes) and hit Enter.
- Check your current version with cmake –version.
- Uninstall it with sudo apt remove cmake.
- chmod +x /path/to/cmake-3.6.2-Linux-x86_64.sh (use your own file location here, but chmod makes the script executable)
- sudo /path/to/cmake-3.6.2-Linux-x86_64.sh (you’ll need to press y twice)
- If you want to install gcc-4.8 , you need to use sudo apt-get install gcc-4.8 .
- @Dumindu But how do I use gcc-4.9 specifically? –
- Uninstall others and install 4.9. –
- @Dumindu Wait, did you just tell me to do what I just did?
- switch to root user : sudo su – goto /usr/bin then run ls -l gcc* and post your output.
with self-update
- Mac. Go to nodejs.org, click ‘install’, and run through the install process.
- Ubuntu. Run the following on your command line to install the source for nodejs curl -sL https://deb.nodesource.com/setup | sudo -E bash –
- Windows. Go ahead the download the Windows binary and make sure to restart your computer.
To add a repository to your system’s software sources:
- Navigate to Ubuntu Software Centre > Edit > Software Sources > Other Software.
- Click Add.
- Enter the repository’s location.
- Click Add Source.
- Enter your password.
- Click Authenticate.
- Click Close.
- Install Git. apt-get install git-core You may be asked to confirm the download and installation; simply enter y to confirm.
- Confirm Git the installation.
- Configure Git’s settings (for the root user)
- Verify the Config changes.