The update command only updates the package list with the latest available versions, however, it does not install or upgrade the package
sudo apt-get update
The upgrade command actually upgrades and installs the latest versions of packages that are already installed.
sudo apt-get upgrade
To upgrade a specific package, command is as follows:
sudo apt-get upgrade <package_name>
Similar to apt-get upgrade command, the apt-get dist-upgrade also upgrades the packages. In addition to this, it also handles changing dependencies with the latest versions of the package. It intelligently resolves the conflict among package dependencies and tries to upgrade the most significant packages at the expense of less significant ones, if required. Unlike apt-get upgrade command, the apt-get dist-upgrade is proactive and it installs new packages or removes existing ones on its own in order to complete the upgrade.
sudo apt-get dist-upgrade
sudo apt-get dist-upgrade <package_name>
sudo apt install stacer
apt list
apt list --installed
sudo apt list
sudo apt purge PACKAGENAME
https://www.cyberciti.biz/faq/apt-get-list-packages-are-installed-on-ubuntu-linux/
This option removes libs and packages that were installed automatically to satisfy the dependencies of an installed package. If that package is removed, these automatically installed packages are useless in the system. It also removes old Linux kernels that were installed automatically in the system upgrade. It’s a no-brainer command that you can run from time to time to make some free space on your Ubuntu system:
sudo apt-get autoremove
You can remove a program in Ubuntu from the software centre or use the command below with the particular app names:
sudo apt-get remove package-name1 package-name2
Ubuntu uses APT (Advanced Package Tool) for installing, removing and managing software on the system, and in doing so it keeps a cache of previously downloaded and installed packages even after they’ve been uninstalled. The APT package management system keeps a cache of DEB packages in /var/cache/apt/archives. Over time, this cache can grow quite large and hold a lot of packages you don’t need. You can see the size of this cache with the du command below:
sudo du -sh /var/cache/apt
You have two ways to clean the APT cache. Either remove only the outdated packages, like those superseded by a recent update, making them completely unnecessary.
sudo apt-get autoclean
Or delete apt cache in its entirety (frees more disk space):
sudo apt-get clean
Every Linux distribution has a logging mechanism that helps you investigate what’s going on in your system. You’ll have kernel logging data, system log messages, standard output and errors for various services in Ubuntu. The problem is that over time, these logs take a considerable amount of disk space. You can check the log size with this command:
journalctl --disk-usage
Now, there are ways to clean systemd journal logs. The easiest for you is to clear the logs that are older than certain days.
sudo journalctl --vacuum-time=3d
Install Virtual Box Guest Edition Follow This link: https://linuxconfig.org/install-virtualbox-guest-additions-on-linux-guest
sudo nano /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Info.plist
Now find the line that says NSHighResolutionCapable and change to if you fail to write then go to System Settings > Privacy & Security > Full Disk Access, give terminal to access the disk.
mkdir directory_name
here directory_name is the folder that we have just created
To delete a directory with rmdir, type the command followed by the name of the directory you want to remove. For example, to delete a directory named dir1 you would type:
rmdir dir1
If the directory is not empty, you will get the following error:
Output:
rmdir: failed to remove 'dir1': No such file or directory
For example to delete a directory named dir1 along with all of its contents you would type:
rm -r dir1
If a directory or a file within the directory is write-protected, you will be prompted to confirm the deletion. To remove a directory without being prompted, use the -f option:
rm -rf dir1
to delete multiple directory
rm -r dir1 dir2 dir3
chmod +x my_first_node.py
sudo apt install nvidia-driver-535 nvidia-dkms-535
and reboot, check
nvidia-smi