apt commands

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6268
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 732 times
Been thanked: 1292 times

apt commands

Post by bigpup »

apt commands.jpg
apt commands.jpg (81.48 KiB) Viewed 2093 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.)

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

ozsouth
Posts: 1359
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 210 times
Been thanked: 602 times

Re: apt commands

Post by ozsouth »

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

User avatar
bigpup
Moderator
Posts: 6268
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 732 times
Been thanked: 1292 times

Re: apt commands

Post 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:

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

backi
Posts: 589
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 71 times
Been thanked: 65 times

Re: apt commands

Post by backi »

@bigpup :

Very helpful :thumbup:

User avatar
mikeslr
Posts: 2791
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 173 times
Been thanked: 835 times

Re: apt commands

Post by mikeslr »

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

User avatar
mikeslr
Posts: 2791
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 173 times
Been thanked: 835 times

Re: apt commands

Post by mikeslr »

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

User avatar
trawglodyte
Posts: 236
Joined: Mon Dec 11, 2023 11:32 am
Location: my cave
Has thanked: 234 times
Been thanked: 72 times

Re: apt commands

Post 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.

Like a monkey trying to fly a space-ship. What's this button do?
Like a 12-yr old trying to wire a house. Gonna get zapped!

williwaw
Posts: 1594
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: apt commands

Post 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.

Post Reply

Return to “BookwormPup”