My server uses the ubuntu operating system. After a while, I saw a lot of update notifications. But I only want to update the security part, so how do I use the command?
Asked
Active
Viewed 1,600 times
1 Answers
0
Edit /etc/apt/sources.list and comment non-security repositories with #:
Example:
from deb http://us.archive.ubuntu.com/ubuntu/ noble main restricted
to # deb http://us.archive.ubuntu.com/ubuntu/ noble main restricted
Then run sudo apt update && sudo apt upgrade.
P.S: This is generally a terrible practice and may cause potential dependency issues (make sure to read @muru's comment on this answer, thus after the operation DO REVERT the sources.list file to normal.
Amirreza
- 435