View Single Post
Old 8th October 2017
gustaf gustaf is offline
Fdisk Soldier
 
Join Date: Dec 2016
Posts: 69
Default

Quote:
Originally Posted by bsd007 View Post
How do I find which packages were installed and how do I remove them ?
First, if you want to remove an installed package and its dependencies, you shouldn't need to know which dependencies were installed.

Dependencies are complicated. There are often dependencies of dependencies that link together to form a complex tree. If you go willy nilly deleting these dependencies by hand, you could seriously mess up your system.

pkg_info(1), pkg_add(1), and pkg_delete(1) were designed to make package management easy and reliable.

Before deleting any packages, the most important piece of information you need is which packages you installed manually.

Quote:
Originally Posted by e1-531g View Post
What is the output of:
Code:
..........................
$ pkg_info -m > manual.txt
..........................

Quote:
Originally Posted by bsd007 View Post
Code:
$ cat manual.txt                                                               
apg-2.2.3p0         automated password generator
chromium-61.0.3163.100 Chromium browser
claws-mail-3.15.0p0 mail and news client
dillo-3.0.5p1       fast and light graphical web browser
firefox-56.0        Mozilla web browser
hexchat-2.12.3p0    GTK+2 IRC Client
k3b-2.0.3ap0        CD/DVD creator
libreoffice-5.2.7.2p6v0 multi-platform productivity suite
mpv-0.22.0p0        movie player based on MPlayer/mplayer2
nano-2.8.7          Pico editor clone with enhancements
nmap-7.60p0         scan ports and fingerprint stack of network hosts
quirks-2.367        exceptions to pkg_add rules
smplayer-17.9.0     complete front-end for MPlayer
sylpheed-3.6.0      lightweight and user-friendly e-mail client
thunderbird-52.2.1p3 Mozilla e-mail, rss and usenet client
vlc-2.2.6p0         VideoLAN client; multimedia player
xfce-4.12p6         Xfce desktop meta-package (base installation)
Based on this output and the results of

Quote:
Originally Posted by bsd007 View Post
Code:
# pkg_delete -a -n
.libs-partial-thunderbird-52.2.1p3: ok
it looks like keepassx is completely gone, but I'm puzzled by '.libs-partial-thunderbird-52.2.1p3' since you have thunderbird-52.2.1p3 installed.

I have never seen a message like this, so I tried a Web search using the terms "pkg_delete" "libs-partial", typed exactly like that, with quotes. The only result was a daemonforums thread on package_check errors from October 2015.

Of particular interest is jggimi's response.

BTW, in case you were not aware, running commands as root (# command) is a really bad practice for security reasons. Don't do it. Learn how to use doas(1) and doas.conf(5) to run commands which require root privileges.
Reply With Quote