How to update adlists from adlists.list file

I updated the adlists.list

ubuntu@ip-172-31-47-40:~$ cat /etc/pihole/adlists.list

# Prevent Trackers and Malwares                                                                                                                                                             lacklist/adservers-and-trackers.txt                                                                                                                                                             xt                                                                                                                                                             ains.list                                                                                                                                                             s

but when I rule

pihole -g

or from gui update gravity lists are not updating in GUI as well. Is there any way to update adlists from /etc/pihole/adlists.list file or we have to enter each URL of script in GUI to add it in list.

As of Pi-hole V5, the file /etc/pihole/adlists.list is no longer used. As discussed in the V5 release notes, adlists, domain blocks (regex, whitelist, blacklist), group assignments and gravity are in a single database in file /etc/pihole/gravity.db

If you want to add the lists you show in your post, select the lot of them (without the commented lines), copy to your clipboard. Then go to web admin GUI > Group Management > adlists and paste the lot into the entry window, and select "add". Then rebuild gravity using either the tools menu on the admin GUI or pihole -g from the command line.