Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About update question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Wed Sep 20, 2006 3:06 pm    Post subject: About update question Reply with quote

Hi folks,

Gentoo_amd64

I need to update all running packages to their latest version, if available on Internet. Performed following steps;

# emerge --sync
# emerge --update world
then update config files if necessary.

Please advise whether any further step is necessary thereafter.

If I expect to clear all empty files on the box which will take up space, which command shall I run. How can I ascertain whether they are needed there. TIA

B.R.
satimis
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Wed Sep 20, 2006 3:12 pm    Post subject: Re: About update question Reply with quote

I always prefer to update 'system' first then 'world', its mainly for me though. I like to keep my updates as specific as possible.
Code:
emerge -upv system
emerge -upv world

always do a pretend (-p) run before the actual emerge, this allows you to verify that the correct USE flags are being picked up (if not add a line to /etc/portage/package.use) and whether or not I feel updating at all is justified.

some people may advocate using the -D emerge command argument, I don't. I rarely use it and my system remains stable and I have very few headaches from routine updates.

I don't have a good answer for your second question, "removing unwanted files".
But it is easy to use portage to see what package a specific file belongs to, using this you can determine whether or not it can be deleted.
Code:
equery belongs some_file_name.ext
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Sep 20, 2006 3:22 pm    Post subject: Re: About update question Reply with quote

jonnevers wrote:
I always prefer to update 'system' first then 'world', its mainly for me though. I like to keep my updates as specific as possible.
Code:
emerge -upv system
emerge -upv world

I just do world and don't ever seem to have issues, portage gets it right.
jonnevers wrote:
always do a pretend (-p) run before the actual emerge, this allows you to verify that the correct USE flags are being picked up (if not add a line to /etc/portage/package.use) and whether or not I feel updating at all is justified.

Good advice.

jonnevers wrote:
some people may advocate using the -D emerge command argument, I don't. I rarely use it and my system remains stable and I have very few headaches from routine updates.

I have used -uD weekly and no issues due to this for at least a year.
jonnevers wrote:
I don't have a good answer for your second question, "removing unwanted files".
But it is easy to use portage to see what package a specific file belongs to, using this you can determine whether or not it can be deleted.
Code:
equery belongs some_file_name.ext

Search the forums on cruft. I believe there is a script for doing that, although I haven't used it.
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Wed Sep 20, 2006 3:24 pm    Post subject: Re: About update question Reply with quote

Hi jonnevers,

Tks for your advice.

Quote:
always do a pretend (-p) run before the actual emerge, this allows you to verify that the correct USE flags are being picked up (if not add a line to /etc/portage/package.use)

Which line shall I add?

$ cat /etc/portage/package.use
Code:

X11-libs/cairo X
x11-libs/cairo x
x11-libs/cairo x
x11-libs/cairo png


Shall I run;
# emerge gentookit
# emerge --depclean
# revdep-rebuild
???

TIA

Others noted with tks.

B.R.
satimis
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Sep 20, 2006 3:37 pm    Post subject: Re: About update question Reply with quote

satimis wrote:
Quote:
always do a pretend (-p) run before the actual emerge, this allows you to verify that the correct USE flags are being picked up (if not add a line to /etc/portage/package.use)

Which line shall I add?

Code:
emerge somepackage -pv


satimis wrote:
$ cat /etc/portage/package.use
Code:

X11-libs/cairo X
x11-libs/cairo x
x11-libs/cairo x
x11-libs/cairo png

Remove the duplicate lines. They'll just cause possible issues later.

satimis wrote:
Shall I run;
# emerge gentookit
# emerge --depclean
# revdep-rebuild
???

no.
I would recommend you read man emerge first and than search for cruft like I mentioned.


Last edited by Headrush on Thu Sep 21, 2006 2:40 am; edited 1 time in total
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Thu Sep 21, 2006 2:08 am    Post subject: Re: About update question Reply with quote

Hi Headrush,

Tks for your advice.

Quote:
satimis wrote:
$ cat /etc/portage/package.use
Code:

X11-libs/cairo X
x11-libs/cairo x
x11-libs/cairo x
x11-libs/cairo png

Remove the duplicate lines. They'll just cause possible issues later.
Is there any difference between "cairo X" and "cairo x"? Which one shall I remove? Tks.

Quote:
I would read man emerge first and than search for cruft like I mentioned.

Whether your meant following thread?
Code:

Filesystem cruft script: clean your system, save disk space!
http://forums.gentoo.org/viewtopic-t-152618-start-0-postdays-0-postorder-asc-highlight-.htm


Tks

B.R.
satimis
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Sep 21, 2006 2:22 am    Post subject: Reply with quote

depclean is dangerous.
u can save space of /var/tmp/portage/ by dleting it
do not remove any files from installation
the emerge cleans the packages after every emerge it is enough and safe.
if u want u can reamove the /usr/portage/distfiles/ but any update downdate u will have to download all necessary files again.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Thu Sep 21, 2006 3:41 am    Post subject: Reply with quote

Hi padoor,

Tks for your advice.

Quote:
depclean is dangerous.
u can save space of /var/tmp/portage/ by dleting it

"portage" is a directory.

$ ls -l /var/tmp/portage/
Code:

total 4
drwxrwxr-x 4 root portage 4096 Sep 11 14:36 check-0.9.3-r1

Whether you meant deleting the above file?

Others noted with tks.

B.R.
satimis
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Sep 21, 2006 5:07 pm    Post subject: Reply with quote

dont delete the directory itself only the contents
if u removed the directory itself make it again.
it can remain empty untill u do another emerge

one can get more info from
http://gentoo-wiki.com/TIP_Free_up_disk_space_in_Gentoo
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Fri Sep 22, 2006 3:05 am    Post subject: Reply with quote

Hi padoor,

Quote:
dont delete the directory itself only the contents

I haven't not deleted the directory nor the file inside. (only one file)

Quote:
one can get more info from
http://gentoo-wiki.com/TIP_Free_up_disk_space_in_Gentoo

Noted with tks.

satimis
Back to top
View user's profile Send private message
Cinder6
l33t
l33t


Joined: 05 Aug 2004
Posts: 767
Location: California

PostPosted: Fri Sep 22, 2006 3:26 am    Post subject: Reply with quote

For /etc/portage/package.use, you want (for your examples given): x11-libs/cairo X png, in order to put them all in one line. There is no 'x' USE-flag, AFAIK (not on Gentoo right now to check); you want 'X'. Also, "X11-libs/cairo" doesn't exist. Portage is case-sensitive, so you have to say "x11-libs". You can combine multiple flags onto one line, like in my example.
_________________
Knowledge is power.
Power corrupts.
Study hard.
Be evil.

Ugly Overload


Last edited by Cinder6 on Fri Sep 22, 2006 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Fri Sep 22, 2006 3:53 am    Post subject: Reply with quote

Hi Cinder6,

Quote:
For /etc/portage/package.mask, you want (for your examples given): x11-libs/cairo X png, in order to put them all in one line......

adjusted as advised. Tks

$ cat /etc/portage/package.use
Code:

x11-libs/cairo X png


I suppose /package.mask meant /package.use

Tks

B.R.
satimis
Back to top
View user's profile Send private message
Cinder6
l33t
l33t


Joined: 05 Aug 2004
Posts: 767
Location: California

PostPosted: Fri Sep 22, 2006 7:40 pm    Post subject: Reply with quote

Yeah, sorry, I meant package.use. Fixed it.
_________________
Knowledge is power.
Power corrupts.
Study hard.
Be evil.

Ugly Overload
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum