martes, 7 de febrero de 2023

All APT commands

 


1. sudo apt-get update

2. sudo apt-get upgrade

3. sudo apt-get install

4. sudo apt-get remove

5. sudo apt-get autoremove

6. sudo apt-get purge

7. sudo apt-get autoclean

8. sudo apt-get source

9. sudo apt-get build-dep

10. sudo apt-cache search

11. sudo apt-cache show

----------



1. sudo apt-get update

2. sudo apt-get upgrade

3. sudo apt-get install

4. sudo apt-get remove

5. sudo apt-get autoremove

6. sudo apt-get purge

7. sudo apt-get autoclean

8. sudo apt-get source

9. sudo apt-get build-dep

10. sudo apt-cache search

11. sudo apt-cache show

12. sudo apt-cache policy

13. sudo apt-get dist-upgrade

14. sudo apt-mark showauto


12. sudo apt-cache policy

13. sudo apt-get dist-upgrade

14. sudo apt-mark showauto

----------------

1. apt-get
This command is used to install new software packages, as well as upgrade existing software packages. For example, if you wanted to install the package called “vim” you would use the apt-get command like this:

`sudo apt-get install vim`

#2. apt-cache
This command is used to search for available packages and view package information. For example, if you wanted to search for the package called “apt”, you would use the apt-cache command like this:

`apt-cache search apt`

#3. apt-mark
This command is used to mark packages as manually installed, automatically installed, or held packages. For example, if you wanted to mark the package called “vim” as manually installed, you would use the apt-mark command like this:

`apt-mark markmanual vim`

#4. apt-file
This command is used to search for files contained within packages. For example, if you wanted to search for a file called “bashrc”, you would use the apt-file command like this:

`apt-file search bashrc`

#5. apt-listchanges
This command is used to view a log of changes made to packages after they are installed or upgraded. For example, if you wanted to view the changelog for the package called “vim”, you could use the apt-listchanges command like this:

`apt-listchanges vim`

No hay comentarios:

Publicar un comentario