Thursday, May 2, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4208  / 3 Years ago, thu, september 9, 2021, 8:48:46

The default directory of sources.list is /etc/apt and when we call apt-get update system store package information in /var/lib/apt and synaptic or package manager read information from there. suppose i have some packages already downloaded in hard disk. so if read package info (sources.list) from desktop and add package information in another directory then i can use synaptic or apt to safely install packages and then restore again sources.list directory.



Procedure will be like this :




  1. Have packages in desktop with sources.list information of packages directory (anywhere)

  2. change default directory to desktop

  3. synaptic or apt will read from desktop and save information in another place

  4. install packages

  5. restore back previous directory information


More From » installation

 Answers
7

With a command line like the following



sudo apt-get -o Dir::Etc=/path/to/other/dir update

[#44123] Friday, September 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shadowoof

Total Points: 293
Total Questions: 112
Total Answers: 137

Location: Burkina Faso
Member since Sun, Nov 21, 2021
3 Years ago
;