Page 1 of 1

apt commands

Posted: Fri May 26, 2023 8:39 pm
by bigpup
apt commands.jpg
apt commands.jpg (81.48 KiB) Viewed 2200 times

.
.
pkg is the exact name of the package you want to work on.

Example:
To install a new package called nginx, enter:
apt install nginx
.
.
For more specific and detailed info.
Use the man command or --help option.

Example:
man apt
apt --help
.

Big Note:
The latest version of Bookworm Pup64 should have a information file under menu -> Help -> How to use the APT Package Manager
.
.
Note:

apt upgrade will only update user-installed packages. Updates for preinstalled packages are (intentionally) disabled using apt-mark hold to avoid updates from polluting your save file/folder and/or slowing down the system, and to prevent updates from undoing Puppy-specific customization done to the Debian packages at Puppy build time.

You can use apt-mark unhold to allow updates to a package, but this is risky. Updating your entire Puppy to a new build is a much safer way to update all core system packages.

(Debian 12 is currently frozen and the only changes are important bug fixes. If you don't see any available updates or see updates today but don't see more updates tomorrow, this is probably why. Generally, the Debian stable release receives few updates, just stability and security fixes, and Debian 12 will receive even fewer updates after the release.)


Re: apt commands

Posted: Fri May 26, 2023 11:17 pm
by ozsouth

I found 'apt autoremove' does a cleanup & should be run after 'apt remove (pkg name)', to remove remnants.


Re: apt commands

Posted: Wed Jul 26, 2023 2:41 pm
by bigpup

Example for getting all sub-packages and optional dependencies.

program VLC

dimkr wrote: Wed Jul 26, 2023 6:03 am

You can use apt install --install-recommends vlc to install VLC including all optional sub-packages and optional dependencies.

Thanks to dimkr for this information! :thumbup:


Re: apt commands

Posted: Wed Jul 26, 2023 3:14 pm
by backi

@bigpup :

Very helpful :thumbup:


Re: apt commands

Posted: Fri Aug 25, 2023 11:11 pm
by mikeslr

Something to consider, https://www.forum.puppylinux.com/viewto ... 165#p97165. Thanks, fred.


Re: apt commands

Posted: Sun Jan 28, 2024 10:44 pm
by mikeslr

Discussion about using apt to remove packages, including those installed via synaptic, here: https://www.forum.puppylinux.com/viewto ... 78#p110378


Re: apt commands

Posted: Wed Jan 31, 2024 12:57 am
by trawglodyte

/var/log/apt/history.log is a record of packages you add/remove with apt. It can be handy, I also like to copy/paste the suggested/recommended packages in a text editor and save them in a folder, like /root/AptNotes or something.

Especially with the A/V stuff, sometimes an app is missing a feature or something doesn't work right and I can go back to the suggested packages when I installed it and find what I need to make it work.


Re: apt commands

Posted: Wed Jan 31, 2024 1:21 am
by williwaw

apt install --install-recommends vlc | tee vlc.log

will create the file vlc.log that contains the sometimes helpful messages that roll by during the install.