Wonderful, it also works. May i know from where does this command get the list from ? Is it from pacman.log ? what does ALPM means ?
Thanks
Hii Manuel,
I am actually looking for the list of installed program sorting with Last installed date.
I want to keep track of the packages that i have installed in the system and those that were installed by itself (if that is ever possible). Just want to keep control of my own system.
Yes, all pacman transactions are kept in /var/log/pacman.log
ALPM stands for Arch Linux Package Management. It is a library that provides the functionality for pacman
, the package manager. In this case, however, it is merely a search term for the grep
utility to, since all records of installation of packages begins with the line “[ALMP] installed”. It’s just a handy search term. If we searched only for “installed”, results like “reinstalled” would pop up, as well as various messages that contain that word.
Thank you for explaining to me. Understood now.
I would like to ask a stupid question:
Could it be possible that some program installation skip being recorded in pacman.log ? Just asking, because in windows os there is such possibility exist.
If you used pacman to install a package, there will be a record of it in the log file (pacman wrappers like yay and pamac also count here).
However, if you used some other way (improper for Arch Linux) to install something, like manually copying the files to their proper places, for example, then of course, there won’t be any record of it.
OK. Then you could use additional options with pacman -Q
like -e and -t. See man pacman
for more.
For example:
pacman -Qe pacman -Qet
not an answer to the question as it doesn’t track how many - but pachist is a great tool to keep track of what you’ve installed - removed - upgraded
You can search by last “number” or date
I think with this method , the result needed to be pipe to a sorting mechanism
in order for to have the installation sequence listing.
Can i just quite ask :
Does this install pahis and also install all needed dependancy of pahis ?
I have never use this option before
On that line there are two separate commands:
sudo pacman -S pahis --needed # installs pahis, need to run only once pahis # runs pahis
The install command of course checks the dependencies normally. Pahis depends on bash and pacman (see: pacman -Si pahis), and you most likely already have those. Pahis itself is a very small bash script.
By the way, option --needed simply prevents re-installing.
I just checked man pacman, there is this option --needed
, the defination of it is “do not reinstall if it is already installed” , what currious me is that, in what situation we need to use this option ?
I mean: Even if the package has already installed, if i reinstall it, it shouldn’t causes anything bad to occur right ? why the need of the option then ?
Thanks
When you save a list of packages to a file (for example, when reinstalling the OS), and that list contains hundreds, if not thousands of packages, and you want to install them all, but not waste time downloading and installing those that are already installed, then the --needed
option becomes quite handy.
Can i ask you a problem regarding Endea os sluggish ?
I have “syncthing” installed yesterday, but i started making it sync between my android phone and laptop. It is syncing many data from android to laptop. Just for your info, one of the folder is DCIM which got a lot of photos in it.
It started syncing, and Endea os became so sluggish, i hardly can move my mouse… and my mouse click are not working, i have to click 3 times in order for 1 of the click to work. To upload this Htop screenshot, it takes 10 clicks to upload a photos… it took me 5 attempt to successfully upload this screenshot… all because mouse is so sluggish that it does not respond …
Is this normal for a linux system to be so sluggish when data transfering is happening in background ? I mean, even windows os is performing better on such a task.
I don’t know what info to provide to you, i only know htop could give you some info.
dmesg seems to have not relavent msg.
Can i don’t post a new thread just for this question ? least ppl getting angry with me asking too much…
Got it. Thx
Seems that syncthing is doing a lot there. Also firefox and baloo are running.
There could be many reasons, like what else is running there, what hardware you are using, how much data you are transferring, how much swapping happens, etc.
No
I usually have something transferring in the background to and from external drives all the time - some times my fans spin up but other than that - nothing. Copying some photos shouldn’t be noticeably on a well functioning system.
This is the detail of my system.
Inxi -v7
$ inxi -v7
System: Host: enos-andrew-pc Kernel: 5.8.8-arch1-1 x86_64 bits: 64 compiler: N/A
Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM
Distro: EndeavourOS
Machine: Type: Desktop System: Micro-Star product: GP60 2QE v: REV:1.0
serial: <superuser/root required>
Mobo: Micro-Star model: MS-16GH v: REV:1.0 serial: <superuser/root required>
BIOS: American Megatrends v: E16GHIMS.10H date: 12/25/2014
Battery: ID-1: BAT1 charge: 11.4 Wh condition: 11.9/48.8 Wh (24%) volts: 12.4/11.1
model: MSI Corp. MS-16GH type: Unknown serial: N/A status: Unknown
Memory: RAM: total: 15.56 GiB used: 2.71 GiB (17.4%)
RAM Report: missing: Required program dmidecode not available
CPU: Info: Dual Core model: Intel Core i5-4210H bits: 64 type: MT MCP arch: Haswell
rev: 3 L2 cache: 3072 KiB bogomips: 23152
Speed: 2905 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 2893 2: 2893
3: 2893 4: 2894
Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2 bts
clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm
dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
ht ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce md_clear mmx
monitor movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sdbg
sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow
tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt
xtopology xtpr
Graphics: Device-1: Intel 4th Gen Core Processor Integrated Graphics
vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:0416
Device-2: NVIDIA GM108M [GeForce 940M] vendor: Micro-Star MSI driver: nvidia
v: 450.66 bus ID: 01:00.0 chip ID: 10de:1347
Device-3: Acer MSI Integrated Webcam type: USB driver: uvcvideo
bus ID: 1-1.4:5 chip ID: 5986:014c
Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: intel,nvidia
unloaded: fbdev,modesetting,vesa alternate: nouveau,nv resolution:
1: 1920x1080 2: 1920x1080~60Hz s-dpi: 96
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:03.0
chip ID: 8086:0c0c
Device-2: Intel 8 Series/C220 Series High Definition Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1b.0
chip ID: 8086:8c20
Sound Server: ALSA v: k5.8.8-arch1-1
Network: Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet
vendor: Micro-Star MSI driver: alx v: kernel port: d000 bus ID: 03:00.0
chip ID: 1969:e091
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: 44:8a:5b:f2:c7:61
IP v4: 192.168.0.80/24 type: dynamic noprefixroute scope: global
broadcast: 192.168.0.255
IP v6: 2a02:908:966:fe00:2ebc:27e2:849c:65cb/64 type: dynamic noprefixroute
scope: global
IP v6: fe80::984a:ede6:deee:a540/64 type: noprefixroute scope: link
Device-2: Intel Wireless 3160 driver: iwlwifi v: kernel port: d000
bus ID: 05:00.0 chip ID: 8086:08b3
IF: wlan0 state: down mac: 6a:c4:a8:4d:24:26
WAN IP: 37.201.193.193
Drives: Local Storage: total: 6.84 TiB used: 2.62 TiB (38.4%)
ID-1: /dev/sda vendor: Western Digital model: WD5000LPVX-22V0TT0
size: 465.76 GiB speed: 3.0 Gb/s rotation: 5400 rpm serial: WD-WXB1AC4FCAS2
rev: 1A01 scheme: MBR
ID-2: /dev/sdb vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB
speed: 3.0 Gb/s rotation: 5400 rpm serial: Y3CMT7EGT rev: 1U scheme: MBR
ID-3: /dev/sdc type: USB vendor: Samsung model: SanDisk Cruzer Blade
size: 14.59 GiB serial: 4C530000180819113595 rev: 1.00 scheme: MBR
ID-4: /dev/sdd type: USB vendor: Western Digital model: WD My Book 25EE
size: 5.46 TiB serial: 575835314431373546373256 rev: 4004 scheme: GPT
Message: No Optical or Floppy data was found.
RAID: Message: No RAID data was found.
Partition: ID-1: / size: 77.23 GiB used: 8.51 GiB (11.0%) fs: ext4 dev: /dev/sdb1
label: N/A uuid: e243610f-aeef-4cd0-8dea-3456638f11f6
ID-2: /home size: 838.16 GiB used: 17.26 GiB (2.1%) fs: ext4 dev: /dev/sdb2
label: N/A uuid: 3a129912-a5a6-460e-965a-e3007b28ce2b
ID-3: /run/media/enos-andrew/3profile-andrewadm size: 465.66 GiB
used: 349.64 GiB (75.1%) fs: ntfs dev: /dev/sda2 label: 3profile-andrewadm
uuid: 28966C23966BF02C
ID-4: /run/media/enos-andrew/6TB My Book size: 5.46 TiB used: 2.25 TiB (41.3%)
fs: exfat dev: /dev/sdd1 label: 6TB My Book uuid: 54BA-47FC
ID-5: /run/media/enos-andrew/deja-dup_backup size: 14.30 GiB
used: 2.16 GiB (15.1%) fs: ext4 dev: /dev/sdc1 label: deja-dup_backup
uuid: 0bba6865-1bc1-4436-8685-f2690c4d10ac
Swap: Alert: No Swap data was found.
Unmounted: ID-1: /dev/sda1 size: 100.0 MiB fs: ntfs label: System Reserved
uuid: 7274632C7462F271
USB: Hub: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s
chip ID: 1d6b:0002
Hub: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
speed: 480 Mb/s chip ID: 8087:8008
Device-1: 1-1.2:3 info: Logitech Cordless Mouse Receiver type: Mouse,HID
driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 1.5 Mb/s
chip ID: 046d:c521
Device-2: 1-1.3:4 info: Intel Bluetooth wireless interface type: Bluetooth
driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s chip ID: 8087:07dc
Device-3: 1-1.4:5 info: Acer MSI Integrated Webcam type: Video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 5986:014c
Hub: 2-0:1 info: Full speed (or root) Hub ports: 14 rev: 2.0 speed: 480 Mb/s
chip ID: 1d6b:0002
Hub: 2-1:2 info: VIA Labs VL813 Hub ports: 4 rev: 2.1 speed: 480 Mb/s
chip ID: 2109:2813
Hub: 2-1.1:3 info: VIA Labs VL813 Hub ports: 4 rev: 2.1 speed: 480 Mb/s
chip ID: 2109:2813
Device-1: 2-1.1.1:4 info: SanDisk Cruzer Blade type: Mass Storage
driver: usb-storage interfaces: 1 rev: 2.1 speed: 480 Mb/s chip ID: 0781:5567
serial: 4C530000180819113595
Device-2: 2-1.1.4:5 info: Logitech Keyboard K120 type: Keyboard,HID
driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
chip ID: 046d:c31c
Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s
chip ID: 1d6b:0002
Hub: 3-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
speed: 480 Mb/s chip ID: 8087:8000
Device-1: 3-1.5:3 info: Western Digital My Book 25EE type: Mass Storage
driver: usb-storage interfaces: 1 rev: 2.1 speed: 480 Mb/s chip ID: 1058:25ee
serial: 575835314431373546373256
Hub: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s
chip ID: 1d6b:0003
Hub: 4-1:2 info: VIA Labs VL813 Hub ports: 4 rev: 3.0 speed: 5 Gb/s
chip ID: 2109:0813
Hub: 4-1.1:3 info: VIA Labs VL813 Hub ports: 4 rev: 3.0 speed: 5 Gb/s
chip ID: 2109:0813
Sensors: System Temperatures: cpu: 52.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 221 Uptime: 6h 13m Init: systemd v: 246 Compilers: gcc: 10.2.0
Packages: pacman: 1022 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.06
As for swap, i have no idea, i have no time to touch swap yet. But according to Htop, swap is 0… which i believe means swap is not yet setup, or disabled.
As for how much data it is transfering… it is transfering some 1G, sometime just a few hundred MB of data. That’s because it is syncing for the first time to this laptop. there are several folder… each has diff amount of data in it, Hence i can’t tell you how much data… as long as syncthing was transfering, it is sluggish. after syncthing finish synced all folder, it is back to normal good speed. Night
Are you using KDE still? You can use KDE Connect to sync with your phone.
May i know what is the advantage of KDE connect over syncthing ? Last time i used KDE connect on manjaro … i only manage to use KDE connect to act as touch pad for laptop, or notification, or transfer a few files betw laptop and hp… media player control fr hp… that’s all i manage to do… a lot of the features are not even working…
However syncthing can constantly sync data between my hp and laptop. I made journals and info collection in my hp when i am not at home, and when at home i do the same thing on laptop… hence i need them to sync… so that i won’t mess up my notes…
I don’t think this is what KDE connect meant for. Pls correct me if i am wrong.