If for any reasons you want to remove a previously enabled repository, use the -remove option: sudo add-apt-repository -remove 'deb bionic/mongodb-org/4.0 multiverse' Adding PPA Repositories # You can now install any of the packages from the newly enabled repository: sudo apt install mongodb-org The repository will be appended to sources.list file. sudo add-apt-repository 'deb bionic/mongodb-org/4.0 multiverse' The basic syntax of the add-apt-repository command is as follows:įirst import the repository public key: sudo apt-key adv -keyserver hkp://:80 -recv 9DA31620334BD75D9DCB49F368818C72E52529D4Īdd the MongoDB repository using the command below. To install it run the following commands: sudo apt update sudo apt install software-properties-common Adding Repositories with add-apt-repository # The add-apt-repository utility is included in the software-properties-common package. If the add-apt-repository is not available on your system you will get an error message saying “add-apt-repository command not found”. The command can also be used to remove an already existing repository. Installing add-apt-repository (add-apt-repository command not found ) #Īdd-apt-repository is a Python script that allows you to add an APT repository to either /etc/apt/sources.list or to a separate file in the /etc/apt/ directory. Usually, the instructions about how to enable a certain repository are included in the software documentation. To be able to add or remove a repository you need to be logged in as either a user with sudo access Most repositories are providing a public key to authenticate downloaded packages which need to be downloaded and imported. The format for the files under the /etc/apt// directory is the same as for the regular sources.list file. Generally, third-party repositories have only one category. The default Ubuntu repositories are split into four components - main, restricted, universe and multiverse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |